Pass NULL if pthread attributes are not available