pub(crate) fn try_get() -> Option<Thread>
Returns a thread ID for the current thread, not allocating one if needed. This avoids registering a thread-local destructor.