hashmap: Use malloc0 to satisfy valgrind

Even though the hashmap code sets all elements of the pool struct
after it mallocs successfully, valgrind still would warn about code
branching based on initialized values. If we zero out the struct
using malloc0 this warning goes away.