model: pull scheduler's thread selection into get_next_thread()