make throttle threadsafe