Reference

borg-with-lock(1) on Linux

The text 983426d69cbd, as Debian 12 (Bookworm) shipped it.

run a user specified command with the repository lock held

borg-with-lock(1) on Linux now