Thread-safe persistent connections with Net::HTTP