private void submitProcedure(final LockProcedure proc, final NonceKey nonceKey) {
    proc.setOwner(master.getMasterProcedureExecutor().getEnvironment().getRequestUser());
    master.getMasterProcedureExecutor().submitProcedure(proc, nonceKey);
  }
Functions to acquire lock on table/namespace/regions.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/locking/LockManager.java