JBTM-2272 fix for 4.17

ISE failure in CDI transactional observer methods with remote EJB call using JTS

NO_TEST
Thanks @tomjenkinson , I will reopen JBTM-2272 to add these codes.