[WFLY-4016] fix memory leak on undeploy of ejb client deployment

https://issues.jboss.org/browse/WFLY-4016