Work on thread_key runtime checks