Mutex to protect database operations from concurrent access. All operations that use `db` must lock this mutex first.