Merge pull request #5282 from pks-t/pks/config-file-iterator-race config_file: fix race when creating an iterator