{condition,mutex,thread}.m: Set errno on error