Revert GH-131993. Fix swallowing some syntax warnings in different modules if they accidentally have the same message and are emitted from the same line. Fix duplicated warnings in the "finally" block. (cherry picked from commit 279db6bede)
279db6bede
lock.h
pylock.h
pyatomic.h
extern "C"
PyTraceMalloc_