When multiple nested DNS validations were destroyed out of order,
the EDE context could be freed before all EDE codes were copied,
which could cause an assertion failure. This has been fixed.
Closes #5213
Merge branch '5213-use-dns_ede_copy-in-dns_validator' into 'main'