JBTM-2272 fix for 4.17

ISE failure in CDI transactional observer methods with remote EJB call using JTS

NO_TEST
Fix looks good to me. Thanks for sorting this out, otherwise we would likely run into it when we test Wildfly with the security manager.