fix fd leak (missing close-on-exec) in getifaddrs