Fix keyguard not respecting security set by profiles

Change-Id: Ibb4aa7ca217c08945974c88f3f30aca9cf14728a