synchronized task at common point using cyclicBarrier