(inet_ntoa): Complete rewrite. Now uses thread-specific memory in