closes bpo-37347: Fix refcount problem in sqlite3. (GH-14268)

(cherry picked from commit b9a0376b0dedf16a2f82fa43d851119d1f7a2707)

Co-authored-by: gescheit <gescheit@yandex-team.ru>
6 files changed