Locks phone under specific conditions:
1. Screen is on
2. The proximity sensor is outputting a 0
3. The phone is flipped face down
On my BLU Vivo 5, the proximity sensor only outputs 0 or 1 cm.
Please change the sensor distance if it is causing issues.
I removed and reuploaded my old one. There were no changes from version 6.