Windows: only add a no-op pthread_sigmask() when needed