cron.sh: fix #locking issue