There is now an option in the repository settings to configure the auto-close behavior:
https://github.blog/changelog/2025-04-23-users-can-now-choose-whether-merging-linked-pull-requests-automatically-closes-the-issue/