fix clobbering of signal mask when creating thread with sched attributes