avoid trying to change a user's locale while in a slave-query block
avoid trying to change a user's locale while in a slave-query block

test plan: visit a canvas course as a new user who has their browser set
to a non-en locale. you shouldn't see a page error.

Change-Id: I5f0447faaec4971a08082de9819d9be79f19935f
Reviewed-on: https://gerrit.instructure.com/13062
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>

SwinburneOnline/canvas-lms,shidao-fm/canvas-lms,greyhwndz/canvas-lms,ShreniiNepal/shrenii_lmp,merichar/canvas-lms,roxolan/canvas-lms,arrivu/hoodemo,nditech/red-innovadores-lms,usmschuck/canvas,Jyaasa/canvas-lms,arrivu/arrivu-lms,tgroshon/canvas-lms,SwinburneOnline/canvas-lms,wimemx/Canvas,efrj/canvas-lms,HotChalk/canvas-lms,antoniuslin/canvas-lms,wye0220/shindig-canvas,Rvor/canvas-lms,shidao-fm/canvas-lms,sdeleon28/canvas-lms,wrdsb/canvas-lms,grahamb/canvas-lms,djbender/canvas-lms,fronteerio/canvas-lms,tgroshon/canvas-lms,redconfetti/canvas-lms,tgroshon/canvas-lms,arrivu/qibla-ecampus,redconfetti/canvas-lms,roxolan/canvas-lms,grahamb/canvas-lms,parbros/red-innovadores-lms,Unow/ins,nditech/red-innovadores-lms,wye0220/shindig-canvas,whalejasmine/canvas-lms,efrj/canvas-lms,jay3126/canvas-lms,rup/Tarrax,ShreniiNepal/shrenii_lmp,HotChalk/canvas-lms,loganrun/pincan,juoni/canvas-lms,utkarshx/canvas-lms,loganrun/pincan,venturehive/canvas-lms,sfu/canvas-lms,nditech/red-innovadores-lms,leftplusrightllc/canvas-lms,Rvor/canvas-lms,va7map/canvas-lms,venturehive/canvas-lms,djbender/canvas-lms,Unow/canvas-lms,HotChalk/canvas-lms,sfu/canvas-lms,wimemx/Canvas,roxolan/canvas-lms,venturehive/canvas-lms,landonwilkins/canvas-lms,Jyaasa/canvas-lms,leftplusrightllc/canvas-lms,whalejasmine/canvas-lms,Unow/ins,kyroskoh/canvas-lms,va7map/canvas-lms,samuels410/greatlakes-lms,redconfetti/canvas-lms,usmschuck/canvas,rup/Tarrax,Unow/ins,whalejasmine/canvas-lms,landonwilkins/canvas-lms,arrivu/arrivu-lms,ankithbti/canvas_lms,Unow/canvas-lms,ShreniiNepal/shrenii_lmp,arrivu/qibla-ecampus,arrivu/hoodemo,efrj/canvas-lms,sdeleon28/canvas-lms,sdeleon28/canvas-lms,antoniuslin/canvas-lms,Unow/canvas-lms,skmezanul/canvas-lms,juoni/canvas-lms,nditech/red-innovadores-lms,sli7246/canvas_branch,ankithbti/canvas_lms,usmschuck/canvas,utkarshx/canvas-lms,djbender/canvas-lms,arrivu/jigsaw-lms,skmezanul/canvas-lms,utkarshx/canvas-lms,sli7246/canvas_branch,landonwilkins/canvas-lms,Rvor/canvas-lms,grahamb/canvas-lms,va7map/canvas-lms,greyhwndz/canvas-lms,sdeleon28/canvas-lms,shidao-fm/canvas-lms,sfu/canvas-lms,arrivu/qibla-ecampus,venturehive/canvas-lms,fronteerio/canvas-lms,merichar/canvas-lms,jay3126/canvas-lms,samuels410/greatlakes-lms,loganrun/pincan,wye0220/shindig-canvas,antoniuslin/canvas-lms,greyhwndz/canvas-lms,Rvor/canvas-lms,greyhwndz/canvas-lms,ShreniiNepal/shrenii_lmp,sfu/canvas-lms,leftplusrightllc/canvas-lms,sfu/canvas-lms,ankithbti/canvas_lms,antoniuslin/canvas-lms,fronteerio/canvas-lms,wrdsb/canvas-lms,jay3126/canvas-lms,fronteerio/canvas-lms,juoni/canvas-lms,landonwilkins/canvas-lms,wimemx/Canvas,SwinburneOnline/canvas-lms,utkarshx/canvas-lms,roxolan/canvas-lms,grahamb/canvas-lms,kyroskoh/canvas-lms,usmschuck/canvas,va7map/canvas-lms,tgroshon/canvas-lms,rup/Tarrax,sfu/canvas-lms,juoni/canvas-lms,efrj/canvas-lms,wrdsb/canvas-lms,arrivu/arrivu-lms,whalejasmine/canvas-lms,arrivu/hoodemo,shidao-fm/canvas-lms,skmezanul/canvas-lms,samuels410/greatlakes-lms,djbender/canvas-lms,wrdsb/canvas-lms,samuels410/greatlakes-lms,redconfetti/canvas-lms,SwinburneOnline/canvas-lms,sfu/canvas-lms,leftplusrightllc/canvas-lms,arrivu/jigsaw-lms,kyroskoh/canvas-lms,sli7246/canvas_branch,skmezanul/canvas-lms,HotChalk/canvas-lms,grahamb/canvas-lms,Jyaasa/canvas-lms,parbros/red-innovadores-lms,merichar/canvas-lms,kyroskoh/canvas-lms,arrivu/jigsaw-lms,Jyaasa/canvas-lms,jay3126/canvas-lms,parbros/red-innovadores-lms