os/signal: split up sleeps waiting for signal
os/signal: split up sleeps waiting for signal

Try to deflake TestNohup.

The kernel will deliver a signal as a thread returns from a syscall.
If the only active thread is sleeping, and the system is busy,
the kernel may not get around to waking up a thread to catch the signal.
Try splitting up the sleep, to give the kernel another change to deliver.

I don't know if this will help, but it seems worth a try.

Fixes #33174

Change-Id: I34b3240af706501ab8538cb25c4846d1d30d7691
Reviewed-on: https://go-review.googlesource.com/c/go/+/194879
Reviewed-by: Bryan C. Mills <1c8aad60184261ccede67f5c63a0d2a3bf3c9ff4@google.com>

akutz/go,nawawi/go,cloudflare/go,akutz/go,CAFxX/go,akutz/go,golang/go,nawawi/go,akutz/go,golang/go,CAFxX/go,golang/go,CAFxX/go,nawawi/go,cloudflare/go,akutz/go,nawawi/go,golang/go,golang/go,cloudflare/go,CAFxX/go,cloudflare/go,cloudflare/go,cloudflare/go,nawawi/go,nawawi/go,akutz/go,akutz/go,cloudflare/go,cloudflare/go,nawawi/go,golang/go,nawawi/go,CAFxX/go,golang/go,CAFxX/go,CAFxX/go,akutz/go,golang/go,CAFxX/go