Token locking

It is now possible to lock tokens by setting the timeout propery of the
Pool. (Auto)refreshing of locks is not yet implemented.