Rename schedule_tail() to thread_schedule_tail().