[PAXWICKET-454] Added synchronized blocks to handle concurrency