public static void registerIfNot(long timeout) {
    if (getCurrentDeadline() == null) {
      setCurrentDeadline(new Deadline(timeout));
    }
  }
register a Deadline threadlocal object to current thread.
@param timeout
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/Deadline.java