A simple thread-safe wrapper for Python sqlite3 bindings.