HORNETQ-1275, 1276, 1279

Combined three fixes into one PR. 

Clebert: these bugs are reproduced easily in running the stomp-benchmark against hornetq. But all are based on timing so it would be difficult to write tests for them. In each of the Jira reports I give the details including dumps to explain the bug. These bugs are preventing me from gathering performance data with the benchmark tool.