ofono: refactor pri_context_changed handler