DeadlockDetect now uses sleep instead of timed-wait semaphores.

The semaphores' timed-wait still has issues on Linux, it's just easier to use cSleep instead.