[libvirt] [PATCH 2/3] avoid closing fd more than once