fix signal masking race in pthread_create with priority attributes