SI-7519 Less brutal attribute resetting in adapt fallback

Prefers `resetLocalAttrs` over `resetAllAttrs`. The latter loses
track of which enclosing class of the given name is referenced by
a `This` node created during implicit search.

The code originally landed in: https://github.com/scala/scala/commit/d4c63b#L6R804