[mcs] Fix recursive resolving of crefs (#18511)