Fix test_closure for 2.x: deletion of closure vars is forbidden, and the iteration variable of list comps leaks into the enclosing local scope