Improve the clean-up of outdated IAuth instances on rehash (SF bug #2789656).