code: public final void unlockAll(List<Lock> locks) {
          for (int i = locks.size(); i > 0; i--) {
              assert this.indexOf(locks.get(i - 1)) != -1;
              locks.get(i - 1).unlock();
          }
      }
docs: Unlock a list of object
  @param locks The locks to unlock