Improve check for pthread_attr_setinheritsched