Unclear locking behavior when repairing a database

DOCS-3838