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.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.