Remove hacks from spinlock and interrupt code. Fix scheduler bug causing crash during context switch. Implement mutexes.