Fix race condition on sending in full MessageQueue
Merge pull request #760 from villytiger/race-condition

Fix race condition on sending in full MessageQueue