gh-111178: fix UBSan failures in Modules/_dbmmodule.c
#129775
+19
−11
Merged