test(cron): avoid ETXTBSY race in custom shell test (#10010)