Update slow-hash.c

Fixed scratchpad initialization/finalization for faster looping.