This patch should solve #932/rhbz #725472, although I have not been able
to reproduce the original crash, so I'm not sure. But it's definitely
something we want to fix as deleting a hash table item from a
hash_iterate visitor callback yields potentially undefined results.