ISPN-4693 Initial submission of handling for orphaned transactions.

https://issues.jboss.org/browse/ISPN-4693

Supersedes https://github.com/infinispan/infinispan/pull/2858