Partial wakelocks added

Added a short partial wakelock to every instance in which the screen is
unlocked to ensure the handler event is run. Previously, the handler
event was not always executed and the screen did not get unlocked.