Synchronize access to SQLite