Reference

borg2-with-lock(1) on Linux

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

run a user specified command with the repository lock held

borg2-with-lock(1) on Linux now