add check for premature wakeup in noaudio device thread nanosleep