This is a custom `Scheduler` that delegates to `NewThreadScheduler` but injects latency to simulate the race conditions that cause the time gap issue.