[connman] fix service structure access while unreferencing

It's unsafe to access service struct after possibly unreferencing it
for the last time, so needed to change the order of statements in
stop_recurring_online_check() so that access after last unref isn't
possible.