Move the creation of the targetLocator below the tests for started etc.
(Otherwise the locator would be left open)
https://bugzilla.redhat.com/show_bug.cgi?id=899989 Cluster user/password fail authentication.
Merge pull request #1255 from clebertsuconic/2.3.x

back porting https://bugzilla.redhat.com/show_bug.cgi?id=899989
Bug 912653 Remote JNDI is not working with a HornetQ-only JMS bridge