Token Bucket Implementation w/ threads, mutexes galore