public void waitOnLatch() throws InterruptedException {
      if (latch != null) {
        latch.await();
      }
    }
set/unset a latch. every procedure execute() step will wait on the latch if any.
hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/TestProcedureNonce.java