fix(build): check for "full" thread_local support

Without __cxa_thread_atexit in the library, we can't do RAII on
thread_local.