bpo-42064: Move `sqlite3` exceptions to global state, part 2 of 2 (GH-26884)



Automerge-Triggered-By: GH:encukou
8 files changed