Move: rtsSleep to pthreads file
This fixes #18272 (closed) by moving rtsSleep
into Pthread.c
.
This function isn't a general function and relies on pthread
being available. It is wrong to define unconditionally.
I have no idea which versions shipped with this change but may need a backport.