Correct check on object wait and don't block in run_once().
Correct check on object wait and don't block in run_once().

This means we chew CPU in a most unfriendly fashion, but the service
does at least stop and start correctly.

getdnsapi/stubby,getdnsapi/stubby