This commit is in a bad debugging state. As far as I can tell, the
main (and hopefully only besides debugging info) problem is that the
sleep_list isn't getting added to properly. Thread 0 was the only thread
being added to sleep_list. Hopefully a dumb and trivial problem