Do not release touch input blocking while proximity sensor is covered

If pressing power key or lipstick restart causes the display to turn
on while the device is in pocket, the unblank time touch detection might
not be enough from blocking touch events from reaching the ui and causing
pocket calls and similar undesirable actions.

Once the touch input has been grabbed, do not ungrab it while proximity
sensor is covered.

[mce] Do not release touch input blocking while proximity sensor is covered. Fixes JB#22587
Add "proximity2" power key action mode

The already existing "proximity" mode blocks power key always when
proximity sensor is covered. Which means careless power button press
can leave the display on if the hand happens to trigger the sensor.

Add new "proximity2" mode that blocks power key actions only when
proximity sensor is covered and display is already off.

[mce] Add "proximity2" power key action mode
Allow bypassing stuck proximity sensor via multiple power button presses

If proximity sensor gets stuck to "covered" state due to dirt/fault
it is possible that the whole phone is practically unusable.

While the sensor still needs to be cleaned or possibly repaired for fully
normal behavior, make it possible for users to recover from this state by
by forcing the proximity sensor to "uncovered" state when the power key
is repeatedly pressed.

By default this requires 3 power key presses within 333 ms from
each other. Customization can be done via mcetool options

      --set-powerkey-ps-override-count=<press-count>
      --set-powerkey-ps-override-timeout=<ms>

[mce] Allow bypassing stuck proximity sensor via multiple power button presses
Merge pull request #214 from spiiroin/proximity_blocks_input

Proximity sensor is used for touch input blocking