Merged unpark_expired into choose_next_thread