Merge pull request #1894 from clebertsuconic/2.4.x

BZ-1149936 HORNETQ-1427 Avoid orphaned consumers
test fix on TemporaryQueueTest

The test is now closing connections at the end. the previous assertion needed to be adapted