Fix perf regression VisualStabilityCoordinator

Use KeyguardStateController.Callback to dispatch
keyguard hiding animation event to fix CL[1] using
alwaysCollectFlow that main thread got blocked
by coroutine thread.

[1]: I61f1dad2dc9485f043c53a8900f1fae2e8ea1187

Flag: com.android.systemui.check_lockscreen_gone_transition
Bug: 373203637
Bug: 358301118
Test: atest SystemUIMicrobenchmark
Test: atest VisualStabilityCoordinatorTest
Change-Id: If2b92094f7f2762fd5ac7bdd542c51311dbfe2d9
2 files changed