[WFLY-2466] Synchronize on collection when iterating
WFLY-2458 Re-deployment of a clustered application fail due to race-condition with infinispan