[MERGE #6000 @MikeHolman] disable switch opt when breaking out of loops
[MERGE #6000 @MikeHolman] disable switch opt when breaking out of loops

Merge pull request #6000 from MikeHolman:switchoptloop

Switch opt gets confused when we need to branch to labels outside the loop, so just disabling it in this case.
Fixes #5985

Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore