A thread-safe version

Unfortunately, global LWP::UserAgent object cannot be properly accessed in multiple threads context, please consider this small patch.