Add per-repo locking, so git doesn't interfere with itself.