Fix a deadlock when a binding gets disposed.
Merge pull request #2 from JohnBillington/master

Fix a deadlock when a binding gets disposed.