strerror_r: avoid corrupting errno on Solaris