Fixes commit ef94fbfd9c93ea5702e0a855bc01104217c75fa4
[mcs] Populate inherited constraints member cache from types not only base types. Fixes #23017