Fix pthread_attr_setinheritsched check

* The header was wrong due to still thinking about the check I improved
  previously.
* It needs -Werror to not work with an implicit declaration.
* It must not use NULL as an argument, because the parameter could be
  declared nonnull.