don't mutate a var in validate-loop-locals, use an atom