Support keyguard lock timeout and security NONE

When waking up from AOD or DOZING, check if keyguard is showing.
KeyguardViewMediator is still responsible for this logic and
will not show keyguard if there is a lock timeout or security
is set to NONE.

This also fixes a race condition with DOZING that could result
in going to LOCKSCREEN instead of GONE.

Fixes: 327606987
Fixes: 326988246
Fixes: 327717534
Test: atest AodToGoneTransitionViewModelTest
DozingToGoneTransitionViewModelTest
Flag: ACONFIG com.android.systemui.migrate_clocks_to_blueprint
TEAMFOOD

Change-Id: I9f7976760292be5d5765e49021e0d579a6250092
10 files changed