ISPN-3245 ReplSyncDistributedExecutorTest.testTaskCancellation fails intermittently

Replace the static counter with a non-static CyclicBarrier in
DistributedExecutorTest. Removes the need for overriding the method in
ReplSyncDistributedExecutorTest.