Only disable pie on lockscreen if lockscreen is secure

allows users to acess notifications and quick tiles from the lockscreen
and still be secure. following aosp behavior
Credit: aaronpoweruser
Fix build for pie

Change-Id: I9ace1959686f15f22b79775c7a22f9a16a3f3da6