maybe just prefix each lock file with something like a unique sequence number?
threads / bug / 63696
Re: [bug] pull --prune could not delete references due to lock file already exists error
Subject: Re: [bug] pull --prune could not delete references due to lock file already exists error