Merge pull request #1118 from gaohoward/2.3.x

bug 971839/HORNETQ-1223 JGroups Channel not closed after the channel is cleaned up
HORNETQ-1224 Fix race on QueueImpl.deliver() when paging.
https://bugzilla.redhat.com/show_bug.cgi?id=972444

Case was actually tracked down by Andy Turner and Howard Gao.

Conflicts:
	hornetq-server/src/main/java/org/hornetq/core/server/impl/QueueImpl.java
	tests/jms-tests/src/test/java/org/hornetq/jms/tests/HornetQServerTestCase.java
Merge pull request #1120 from FranciscoBorges/2.3.x

HORNETQ-1224 Fix race on QueueImpl.deliver() when paging. https://bugzilla.redhat.com/show_bug.cgi?id=972444
moving test into the right place
Merge pull request #1124 from clebertsuconic/2.3.x

moving test into the right place
HORNETQ-1224 Proper fix race on QueueImpl.deliver() when paging. https://bugzilla.redhat.com/show_bug.cgi?id=972444
Merge pull request #1125 from clebertsuconic/2.3.x

HORNETQ-1224 Proper fix race on QueueImpl.deliver() when paging. https://bugzilla.redhat.com/show_bug.cgi?id=972444