Rename thread_state_t to thread_context_t