[IB] umad: avoid potential deadlock when unregistering MAD agents