Close the correct file when using a metalink.xml file

When using librepo, PackageKit crashes after after issuing a few hundred
transactions with 'Too many open files' -- Sure enough, looking at the output
of lsof before it crashes, I have hundreds of open files to various metalink.xml
files.

Fix the typo so that the metalink file descriptor actually gets closed.