Reference

borg-with-lock(1) on Linux

The text 9a99314e24f2, as Debian 10 (Buster) shipped it.

run a user specified command with the repository lock held

borg-with-lock(1) on Linux now