Wrap ratelimit in a synchronize block around ratelimiting.