runtests: detect 'ares' better

... caused false detections of the threaded resolver otherwise