remove localize_vars from `@schedule`. ref #8591

There really needs to be some macro that does this kind of thing without
playing games with your variables.