do_wait: kill the old BUG_ON, use while_each_thread()