thread_local everywhere but Android.