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(...).

Conflicts:
	ejb3/src/main/java/org/jboss/as/ejb3/cache/Contextual.java
	ejb3/src/main/java/org/jboss/as/ejb3/logging/EjbLogger.java
Remove dependency on Infinispan's BatchContainer which relies on ThreadLocals.

Conflicts:
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/InfinispanBeanManager.java
Fix NPE in InfinispanBeanEntryExternalizer.writeObject(...) when the lastAccessedTime is null (which is the case following creation).