util: Add rate limiter macros.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>