Two fixes from John Dyson to fix hangs and panics when using ctrl-T:
- tty.c: gather all the info about the processes before calling ttyprintf
(which may block).
- syscons.c: handle asynchronous output properly (data structures may
be corrupted otherwise).