Fixes bugs in SelectWakeup that caused us to forget the thread's event bit.
Fixes bugs in SelectWakeup that caused us to forget the thread's event bit.

bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn,bakerstu/openmrn