Multiple threads loop over this data, which changes. These loops need to use a copy. In py2 .keys() and .values() are copied data, but in py3 they are references to the dict data. Fixes: https://pagure.io/koji/issue/1355