Move lock state change to an IntentService