private void closeBulkRegionOperation() {
    regionLockHolders.remove(Thread.currentThread());
    if (lock.writeLock().isHeldByCurrentThread()) lock.writeLock().unlock();
    else lock.readLock().unlock();
  }
Closes the lock. This needs to be called in the finally block corresponding to the try block of
#startRegionOperation
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java