[server] Add cache support for repo

  - [fix] correct some typos and mistakes mentioned by killing
  - [fix] expire cache in seaf_branch_manager_test_and_update_branch in branch.c
  - [fix] expire cache in set_virtual_repo_base_commit_path in virtual-repo.c
  - [impl] TTL support for cache