fix `thread_local` macro