Fix deadlock occuring when booting vkernel from gdb. One lwp in the vkernel
sends a signal to another one and is preempted by the signal receiving one in
userexit(). As the vkernel is traced, the vkernel process is stopped and the
receiving lwp stops too. The emitting lwp then resumes and blocks later on a
condition variable. The gdb process sleeps on wait(2) which never completes
because the emitting lwp is not stopped.
To prevent this, stop lwps in userexit(), after lwkt_reschedule, if their
owning process is stopped.
Reported-by: Simon Schubert <corecode@fs.ei.tum.de>