pthread_sigmask: Work around bug in single-threaded implementation.