fallback to the cur_limit is the max_limit returned 0
use 64bit integers for the internal counters

instead of 32bit ones (which are overflowed quite early when running at 300k requests per second)