proc: change first_tid() to use while_each_thread() rather than next_thread()