prevent a possible crash on server termination with YP in use

The recent change to have YP changes put into a queue (to avoid a deadlock), still
needed the yp_stop to wait for it finish completing. Here we just delay as the
thread will not block on anything else and just empty the queue.