Minor style change - no functional change
Allow thread-unsafe getaddrinfo() with locks

Before, getaddrinfo() would not be used at all if it is not thread-safe.
threading.h: Add of_once()
Make MinGW32 and MinGW-w64 happy at the same time