tests: Call res_nclose() in test_res_query_search.c