pthread functions do not set errno