[libvirt] [PATCH] util: Avoid calling closedir(NULL)