Fix race condition with SIM bouncer on start

The user could end up with a blank screen or a strange
looking lockscreeen.

The SIM bouncer may decide to show in two bad conditions:
1. The bouncer hasn't been bound yet - So return false
2. The device is entering doze but hasn't quite made it -
   so don't show it.

Test: atest StatusBarKeyguardViewManagerTest
Fixes: 351426938
Flag: com.android.systemui.sim_pin_race_condition_on_restart
Change-Id: I5f69563ee94aea092c2f179e66a5c51c67886fda
diff --git a/packages/SystemUI/aconfig/systemui.aconfig b/packages/SystemUI/aconfig/systemui.aconfig
index 71f5511..8e2f7c1 100644
--- a/packages/SystemUI/aconfig/systemui.aconfig
+++ b/packages/SystemUI/aconfig/systemui.aconfig
@@ -1186,4 +1186,14 @@
   namespace: "systemui"
   description: "Enables MSDL feedback in SysUI surfaces."
   bug: "352600066"
+}
+
+flag {
+   name: "sim_pin_race_condition_on_restart"
+   namespace: "systemui"
+   description: "The SIM PIN screen may be shown incorrectly on reboot"
+   bug: "351426938"
+   metadata {
+        purpose: PURPOSE_BUGFIX
+   }
 }
\ No newline at end of file