Fixes #17517 which includes the fixes for doj0x/app issues 208 and 209. As part of this fix dojox/app will set visibility hidden when is view is created or is being transitioned to, and setting visibility visible right before the transition is done to avoid having views flicker or overlay each other during transition.

(cherry picked from commit 3d6b204558b5a8f088e4516dbe100802f2078fe7)