getservbyport_r: fix wrong result if getnameinfo fails with EAI_OVERFLOW