Implement the "thread_local" keyword.