clock: enhance clock sleep, using the same approach as pyglet internals. no busy-wait yet.