public EntityLock regionLock(List<RegionInfo> regionInfos, String description, Abortable abort) {
    LockRequest lockRequest = buildLockRequest(LockType.EXCLUSIVE, null, null, regionInfos,
      description, ng.getNonceGroup(), ng.newNonce());
    return new EntityLock(conf, stub, lockRequest, abort);
  }
Create a new EntityLock object to acquire exclusive lock on multiple regions of same tables.
Internally, the table and its namespace will also be locked in shared mode.
hbase-server/src/main/java/org/apache/hadoop/hbase/client/locking/LockServiceClient.java