QPID-5363: Add locks to prevent race condition in Amqp 1.0 transport - merge from trunk



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