Improve error reporting for locked references
Improve error reporting for locked references in both DeleteRefs and WriteRefs. This should make it easier for us to detect lock contention and pin down the references that we failed to update.
Corrective action for 2023-07-03: GitalyServiceGoserverErrorSLOViolat... (gitlab-com/gl-infra/production#15973 - closed).