Fix segfault when calling hash_final twice

Summary: context is freed in hash_final. The second call tries to use the freed variable.

Fixes #3741
Closes https://github.com/facebook/hhvm/pull/3771

Reviewed By: @fredemmott

Differential Revision: D1560874