Low: scheduler: avoid use-after-free when on-fail=block
It was a problem only when trace logs were enabled.