More intelligent handling of CronJob lock failures.