use rt_sigprocmask, not legacy sigprocmask, syscall in pthread exit code