[Bug 7530] gethostbyname_r fails if initial buffer size is too small