Apply branch rule setting for resolving outdated merge request diff threads
<!--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=525155)
- [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=525155)
</details>
<!--IssueSummary end-->
Update `MergeRequest#update_diff_discussion_positions` to consider the branch rule setting (from https://gitlab.com/gitlab-org/gitlab/-/issues/504648) for resolving outdate merge request diff threads when it exists instead of the project level setting.
The branch specific setting should only be applied when the feature is available to the project.
issue