PYTHON-6194ClosedDone
Fix SpecRunnerTask/SpecRunnerThread lost wakeup race
h3. *Context* SpecRunnerTask/SpecRunnerThread don't hold their lock when modifying state, causing waiters to race and sometimes miss wakeup calls. h3. *Definition of done* No races. h3. *Pitfalls* N/A.