[9.20] fix: usr: Fix trying the next primary server when the preivous one was marked as unreachable
In some cases (there is evidence only when XoT was used) named
failed
to try the next primary server in the list when the previous one was
marked as unreachable. This has been fixed.
Closes #5038 (closed)
Backport of MR !9781 (merged)