Make sure these tests close their InitialContext.
Add Batch context to StatefulSessionComponentInstance instead of thread local.  Otherwise Cache.release/discard(...) won't work if called from different thread than Cache.get(...).
Remove dependency on Infinispan's BatchContainer which relies on ThreadLocals.
Fix NPE in InfinispanBeanEntryExternalizer.writeObject(...) when the lastAccessedTime is null (which is the case following creation).