Remove few lines in unix socket handling

Petr Menšík requested to merge pemensik/bind9:feature/master/unix-cleanup into main

Reuse the same checks two times, make difference minimal.

Just reduce repeated parts found on random check.

Edited by Ondřej Surý

Merge request reports