Merge "Fix invalid Keyguard state with encrypted devices." into lmp-preview-dev