Write lock repomd.xml while processing