Respect DPM when deciding whether keyguard is disabled by profile.

Change-Id: I2fd50e1edd517956a59770a2ecd754cea0003c1c
(cherry picked from commit fb8cc5de46c785b340a87b2c57deabe92f0c7829)