HORNETQ-1313 - Resource adapter leaks connections

cherry-pick from 2.4.x