private static void increment(ConcurrentMap<String, Integer> map) {
    String name = Thread.currentThread().getName();
    map.putIfAbsent(name, 0);
    map.put(name, map.get(name) + 1);
  }
Should be called by the lock to indicate that the lock was unlocked.  For reentrant locks this may or may not
mean the lock was actually released.
ambari-server/src/main/java/org/apache/ambari/server/logging/LockProfileDelegate.java