How to reproduce:
1. Open the user-attached project “MonitorWaitBug”
2. Click Window → General → Test Runner
3. Click Run All Tests (StandaloneWindows64)
Expected result: The tests return true
Actual result: The tests return false
Reproducible with: 2020.3.40f1, 2021.3.12f1, 2022.1.17f1, 2022.2.0b8, 2023.1.0a12
Reproducible on: Windows 11 Pro