add git state repo lock rather than solving concurrent revisions (fixes #1)