WFLY-3695 Distributed web session expiration ScheduledExecutorService leaks threads on undeploy

Conflicts:
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/BeanExpirationScheduler.java
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/logging/InfinispanEjbLogger.java
	clustering/web/infinispan/src/main/java/org/wildfly/clustering/web/infinispan/logging/InfinispanWebLogger.java
	clustering/web/infinispan/src/main/java/org/wildfly/clustering/web/infinispan/session/SessionExpirationScheduler.java
Correct fix for WFLY-3682 which caused regressions in XPC PassivationTestCase.  Restores consolidation of nested batches.  Adds separate mechanism for resuming a batch.

Conflicts:
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/BeanEvictionContext.java
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/BeanEvictionScheduler.java
	clustering/ejb/infinispan/src/main/java/org/wildfly/clustering/ejb/infinispan/InfinispanBeanManager.java
	ejb3/src/main/java/org/jboss/as/ejb3/cache/distributable/DistributableCache.java
	ejb3/src/main/java/org/jboss/as/ejb3/cache/distributable/DistributableCacheFactoryService.java
Add sleep following start/stop/deploy/undeploy to help address timing issues with failover tests.
Add topology stabilization logic to tests that are timing sensitive to topology changes.

Conflicts:
	testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/session/persistence/SessionClusterDbPersistenceTestCase.java
	testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/web/CoarseWebFailoverTestCase.java
	testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/web/GranularWebFailoverTestCase.java
	testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/web/ReplicationForNegotiationAuthenticatorTestCase.java
Ultimately fix WFLY-3401 EJB StatefulTimeoutTestCase transient failures.
If expiration task fires promptly, then now - lastAccessedTime == timeout
So make sure expiration check is inclusive.
Merge pull request #6569 from pferraro/ejb-8.x

[8.x] Backport clustering fixes from master