A generic lock-free implementation of the "Token-Bucket" algorithm