for_each_hash: allow passing a 'void *data' pointer to callback