Remove calling sigprocmask in thread generated in set_exit_on_term

In pthread, child thread's signal mask inherits parent thread's one.