Use Gitlab::Git::Finders::RefsFinder in repository_branch_names_resolver.rb
<!--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>
- [Work on this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=580056)
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=580056)
</details>
<!--IssueSummary end-->
## Context
We need to use `Gitlab::Git::Finders::RefsFinder` in `repository_branch_names_resolver.rb`.
The `repository_branch_names_resolver.rb` resolver uses `Repositories::BranchNamesFinder` which relies on Redis SSCAN to search repository branches by name. [SSCAN mechanism](https://redis.io/docs/latest/commands/sscan/) uses [glob-style patterns](https://redis.io/docs/latest/commands/scan/#the-match-option).
Since we are working on [stopping the storage of `branch_names` in Redis](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/207197), we need to replace `BranchNamesFinder` in `RepositoryBranchNamesResolver` with `RefsFinder`.
This will also contribute to https://gitlab.com/groups/gitlab-org/-/epics/11057+.
issue