Add some tests for the dispatch thread

Not yet fully complete, but does mutexes and semaphores.

I still don't have it fully passing, there's something leaking with kernel uid reuse, but I'm not sure what.  But it's a good test so far I think.

-[Unknown]