Fixed rare problem seen releasing the Wake Lock.