Inherit lock state when updating notification channels. When a notification channel is updated, ensure it inherits the 'isBlockable' and 'isImportanceLockedByCriticalDeviceFunction' attributes from the existing channel if it's currently locked. This was autogenerated by MendIt (go/androidmendit) Bug: 503434084 Test: atest FrameworksServicesTests:com.android.server.notification.PreferencesHelperTest Flag: EXEMPT BUGFIX (cherry picked from commit 778befd095741a74c44bb4918a62a489db21a960) Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:726f73fd4d794f59952c2250055555b5f07f2dcc Merged-In: Iaa1a3a1457c564ced2540ee8caa6e7ba8d1400ae Change-Id: Iaa1a3a1457c564ced2540ee8caa6e7ba8d1400ae