[PAXWICKET-454] Added synchronized blocks to handle concurrency

Should prevent ConcurrentModificationException