InjectionMetadata caching per bean name needs to refresh when bean class changes

Issue: SPR-11246