std::rt: Optimize TLS use in change_task_context