Revert "resolve: Use NameBinding for local variables and generic parameters"
This reverts commit 6162529a01473bbb2427fa27354cbafc3c514eee, that is, PR #89100.
Reverting per performance regression noted post-merge on that PR (https://github.com/rust-lang/rust/pull/89100#issuecomment-948065457).