DO NOT MERGE Fix work profile change race condition in LMS am: 9b0b32bd17

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11707507

Change-Id: I575fb88dd9b9569caebbd2c442b7a1aee456d23c