Add DbLock with context manager.