Make sure the set of instances does not change during iteration in
_find_names (even though I still have no idea why it should change in
the first place...)