Fix a few bugs in 'loop'
Fix a few bugs in 'loop'

- make it work well on small rates and with parallel > 1
- make it work well on small rates and with a lot of workers

moigagoo/mzbench,moigagoo/mzbench,moigagoo/mzbench,moigagoo/mzbench