Merge pull request #13 from MatthewMah/master

Do not spinlock in XMSEventDistributor. Synchronize on event stack.