lua resolve(): correctly include EDNS0 in the virtual packet

The new allocation approach isn't perfectly optimal, but it seems
relatively easy to understand and handles OOM conditions OK (I think).
27 jobs for lua-resolve-opt
in 87 minutes and 37 seconds and was queued for 3 seconds