[3.12] gh-111178: fix UBSan failures in Modules/_multiprocessing/semaphore.c (GH-129084)
#129101
+5
−2
Modules/_multiprocessing/semaphore.c (GH-129084)
#129101