cron lock management