Fix a deadlock when a binding gets disposed.