private String filterUnlocked(Map<?, LockAndQueue> locks) {
    return locks.entrySet().stream().filter(val -> !val.getValue().isLocked())
      .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)).toString();
  }
Removes all locks by clearing the maps. Used when procedure executor is stopped for failure and
recovery testing.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/SchemaLocking.java