docs: public synchronized void close() throws IOException {
      writable = false;
      if (map != null) {
        ByteArrayUtil.unmapByteBuffer(map);
        map = null;
      }
      if (lock != null) {
        lock.release();
        lock = null;
      }
      file.close();
    }