docs: public boolean checkWrite(TransactionImpl tx, Object obj)
      {
          LockEntry writer = getWriter(obj);
          if (writer == null)
              return false;
          else if (writer.isOwnedBy(tx))
              return true;
          else
              return false;
      }