Fix race contition execption in gitfs