node:dns: treat a third argument to resolve* and reverse as the callback (#39552)