retry rehash() if Dict is changed during the process. should fix #3181 for real this time.