Improve performance of GitRepo.num_commits by a bit. Fix status mistakenly reports as complete while it is not.
Found a bug related multiple threads trying to modify GitRepo at once (esp num_commits). Now only 1 thread for 1 repo.