JBPM-3723 - Allow StatefulKnowledgeSession to be disposed from within a JTA Transaction
(cherry picked from commit dbf6ad64430014686add9abb37757ba30d78c9c6)
fixing deadlock/handging builds
(cherry picked from commit e7a5a3efcdd5cd737a8d67629f13ba56221e56cf)