kernel - Fix tty cool-aid

* Fix a tty crash in the ^T handling code.  The code can race LWP
  destruction and blow up.
kernel - Attempt to fix NULL pointer dereference during console switch

* Attempt to fix NULL pointer dereference during console switch.
  Bug 2481.

Reported-by: marino