Fix wakelock issues in deepsleep