Modify the logic that updates the information of enabled services in ManagedServices to handle the visible background user in MUMD

- mEnabledServicesForCurrentProfiles, mEnabledServicesPackageNames
is designed only for the current user and work profile.
- We added a condition to prevent visible background users from updating
mEnabledServicesForCurrentProfiles, mEnabledServicesPackageNames

Bug: 355106764
Flag: EXEMPT bugfix
Test: atest ManagedServicesTest
      atest CtsNotificationTestCases
(cherry picked from https://partner-android-review.googlesource.com/q/commit:c89012e6799e0a71b8f841567ea7be46f3064008)

Change-Id: If93d9d014447647cdd1fc48ec6fae91146ea9f81
3 files changed