Change barrier method to use Curator.DistributedDoubleBarrier