public void lock(final T name) throws InterruptedException {
      synchronized (locks) {
        while (locks.contains(name)) {
          locks.wait();
        }
        locks.add(name);
      }
    }
Performs some action after {@link #update(GlobalQuotaSettingsImpl)} with the resulting quota
from the request action for the subject.
hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/MasterQuotaManager.java