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

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

Change-Id: I971be58e4d2a2b6e53b1b8c07b4f6f59dffbe12e