Make Clock thread safe.

Makes the clock thread safe, changes the hash, cleans it up a bit, and adds docs. See https://github.com/kivy/kivy/wiki/Kivy-clock-experiments for more details.