DO NOT MERGE - Allow locking with feature or permission am: 9ead5a3c05 am: 1c71776f9b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11739858

Change-Id: I2115977b5db532c6cce8b09c7eabcf566a72eba4