[BZ#1035216] - ArrayIndexOutOfBoundsException during periodic recovery o...

...n EJBTransactionRecoveryService

Create xaResources array under synchronized block