Lock the backend with the highest priority
Locking disallows anybody else from writing to that backend. Any updates made after locking will not be visible to a reader until the file is unlocked.
You can apply the changes by calling git_transaction_commit()
before freeing the transaction. Either of these actions will unlock
the config.
0 or an error code