[FIX] core: correct cron thread registry iteration

Fixes #3387