Get an exclusive lock for SQLite writes. Speculative fix.