pthread_sigmask usage