[FIX] core: correct cron thread registry iteration

Fixes #3387
Merge branch '8.0' of https://github.com/odoo/odoo into 8.0-linux64