hashmap: add simplified hashmap_get_from_hash() API