rts: Add Windows-specific implementation of rtsSleep
Previously we would use the POSIX path, which uses nanosleep
. However,
it turns out that nanosleep
is provided by libpthread
on Windows. In
general we don't want to incur such a dependency. Avoid this by simply
using Sleep
on Windows.
Fixes #18272 (closed).