tinysvcmdns: don't spin violently on shutdown

Linux overwrites the timeout argument with the remaining time when
select() returns, so if you don't reset it it shrinks to nothing.
Replaced with nanosleep() as per POSIX.1.