QPID-5061: do exclusivity checks before registering link to avoid cancelling a subscription that did not succeed (merged from r1512218)

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