set errno when getpw*_r, getgr*_r, and getspnam_r fail