d_hash_and_lookup(): export, switch open-coded instances