docs: @Override
    public void close() {
      if (closed) {
        return;
      }
      if (SHOULD_CHECK && !txn.isReadOnly()) {
        txn.checkReady();
      }
      LIB.mdb_cursor_close(ptrCursor);
      kv.close();
      closed = true;
    }