Update coding style for hash_foreach_mem