fix pocket mode turning screen on after unlocking/power off

PS2: improve sensor registry handling
PS3: make notification posted events block concurrent events to
     prevent races/handler leaks
PS4: synchronize proximity notification posting

Change-Id: Ibd28c6f4752dd75bdf072d5689a342574311d73d