QPID-5385 : [JMS AMQP 1.0] Create/Close session in a loop causing connection to be closed and connection.close to hang after that (patch from Xin Chen)

git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1549670 13f79535-47bb-0310-9956-ffa450edef68