Explain how the file be edited when the file is locked
<!--IssueSummary start-->
<details>
<summary>
Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards.
</summary>
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=392416)
</details>
<!--IssueSummary end-->
<!-- This template is a great use for issues that are feature::additions or technical tasks for larger issues.-->
### Proposal
Source: https://twitter.com/_Codito_/status/1626687790036533248
> don't understand though why other users can't unlock file (button disabled), while Edit button is active and opens web editor for that locked file :thinking_face:

If you continue to edit the file and try to commit directly to the branch with an error message "denied by custom hooks"

The error message doesn't help the user understand why they can't commit the file directly on the same branch. But the file can be edited on a separate branch
<!-- Label reminders
Use the following resources to find the appropriate labels:
- Use only one tier label choosing the lowest tier this is intended for
- https://gitlab.com/gitlab-org/gitlab/-/labels
- https://about.gitlab.com/handbook/product/categories/features/
-->
issue