Move onBeforeUserSwitching call to the beginning of the user switch.

Bug: 331853529
Bug: 360838273
Test: atest FrameworksServicesTests:UserControllerTest
Flag: EXEMPT bugfix
Change-Id: I03e3756194ea0565ea5ce1b5ac383beffae36839
2 files changed