Allow multithreaded SQLite on Python 3