[Libguestfs] [PATCH 09/13] Coverity: Close directory handle along error paths.