Code used to reproduce deadlock in the ActiveMQ broker