rustc: move freevar finding to resolve.
rustc: remove Gc<Def> and depth from DefUpvar.