[test runner] Better fix for async closing over mutated variable