Another attempt to lock git reliably