[mcs] Makes flow analysis of goto/goto case significantly faster. Fixes #24511