layer/iterate: changes in cname loop detection process

3 jobs for fix-cname-loop
in 1 minute and 46 seconds and was queued for 1 second