Improved kernel locking mechanism. Shouldn't spinlock now.
Added mechanism to clear blocks.
Added thread wait function based on new blocking mechanism.
Fixed bugs with stack handling. Fixed reaper_thread ID. Added extra consistency checks.
Updated module api to use return value from sch_new_thread.
Added test for sch_wait.