Reference

borg-with-lock(1) on Linux

The text a0dfd883acfe, as Debian 11 (Bullseye) shipped it.

run a user specified command with the repository lock held

borg-with-lock(1) on Linux now