skip sleep duration assessment if client becomes inactive

When client becomes inactive (to start a thread), there are no guarentees on when
that thread will run and exit so skip the sleep test if it is still inactive. This
should remove extra wakeups with auth, yp and slave thread startups.
small update to the scheduling of the yp thread, has 1 second delay after completion

the initialisation is not needed as the thread startup code does that