dns: allow v8 to optimize lookup()

Using `arguments` and reassigning parameter variable
values causes v8 to disable function optimization.