Add TTL to git branch locks
Fix https://github.com/huggingface/datasets-server/issues/2123

TODO:
- [x] fix tests
Add TTL to git branch locks: Fix https://github.com/huggingface/datasets-server/issues/2123

TODO:
- [x] fix tests