Initialize and shutdown the threads subsystem
Use threads to asynchronously resolve hostnames for masterservers