I had no issues trying those steps with the camera. Both ways worked fine for me.
It seems to only occur with specific apps for me. For example, mine will always get stuck when switching orientation in my IP camera monitoring apps (gDMSS lite and Tinycam Pro), when using mobile check deposit in the bank on America app (after going into landscape to take the photo of the check, it gets stuck in landscape), when switching orientation in my Sunday ticket app, occasionally in YouTube, and there may be a few others. But then there seem to be others where it's never an issue at all. It makes no sense at all.