Add write lock to gitserver.