backport: test: dnssec/dnskey_algorithms, wait for valid zones

Resolve valgrind slowdown by waiting for all expectedly valid zones.

We should rather wait till the server initialization is done, but this
is not possible at the moment.