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).
Rename Contextual.get/setContext() to get/setCacheContext().
Merge pull request #6543 from pferraro/ejb-8.x

[8.x] Backport WFLY-3682 fix to 8.x