public void setWaitLatch(CountDownLatch latch) {
      this.latch = latch;
    }
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/TestProcedureRecovery.java