nixos/tests/avahi: Fix race condition on mDNS test

See #2172.

Before this patch, I manually restarted tests.avahi.i686-linux on my local Hydra 3 times and got 3 failures in a row.

After this patch, I manually restarted the same test 3 times and I got 3 successful runs in a row.