gh-150902: Optimize PyCriticalSection2 to skip locking the same locks as the ones held by the current CS2
#267596
| Job | Run time |
|---|---|
| 3s | |
| 3s | |
| 6s |