protected void releaseLocks(SchemaPageContext cxt) {
    for (int i : cxt.lockTraces) {
      cxt.referredPages.get(i).getLock().writeLock().unlock();
    }
  }
Context only tracks write locks, and so it shall be released.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/schemafile/pagemgr/PageManager.java