hash: Correct implementation of mhash_finish().