EJBCLIENT-104: run tests with security manager and provide fixes

https://issues.jboss.org/browse/EJBCLIENT-104
Upstream: https://github.com/jbossas/jboss-ejb-client/pull/76