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