GH-116946: revert eliminate the need for the GC in the _thread.lock and _thread.RLock
#217770
| Job | Run time |
|---|---|
| 5s | |
| 6s | |
| 11s |
_thread.lock and _thread.RLock
#217770
| Job | Run time |
|---|---|
| 5s | |
| 6s | |
| 11s |