utils: resolve RuntimeError: dictionary changed size during iteration

5 jobs for fix_#892 in 37 minutes and 8 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Style
passed #45371
check_style

00:00:19

 
  Tests
passed #45404
run_tests:source

00:35:09

33.0%
failed #45372
run_tests:source

00:35:08

33.0%
 
  Build
passed #45373
create_doc:reference

00:01:39

passed #45374
create_doc:user

00:01:19