public void markFree() {
    if (ownerThread.getAndSet(null) == null) {
      throw new AssertionError("Not in use");
    }
  }
Mark session as free for use from TezTask, for safety/debugging purposes.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/TezSessionState.java