docs: public boolean releaseLock(TransactionImpl tx, Object obj)
      {
          LockEntry writer = getWriter(obj);
          if (writer != null && writer.isOwnedBy(tx))
          {
              removeWriter(writer);
              return true;
          }
          if (hasReadLock(tx, obj))
          {
              removeReader(tx, obj);
              return true;
          }
          return false;
      }