Update JBossApplicationMaster.java

Changed threads collection to avoid potential concurrency issues once  onContainersAllocated has been called concurrently.