Support folly::getCurrentThreadID() without PThread