bpo-44304: Ensure the sqlite3 destructor callback is always called with the GIL held (GH-26551) (GH_26552)

(cherry picked from commit 6e3b7cf3af3ed7758b2c2193c1d393feb8ab8f72)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2 files changed