Handle the possibility that a XBPython registration list is modified in a callback.