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

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

Change-Id: If2799ec77afaf273db94e88bf101da0de28ec9a0