fix regression in getspnam[_r] error code for insufficient buffer size