[scudo] Remove locks from getTSDAndLockSlow (#201960)

Change the name of getTSDAndLockSlow to getTSDLockSlow and remove all
locks in favor of using atomic variables. Continue to lock when changing
the number of shared TSDs.

This change will remove thread contention and avoid blocking between
threads when this function is called.

GitOrigin-RevId: 3136d62938e8cb8ac3ca735d7db741a0c0d11521
2 files changed