Prevents a possible race condition when fetching in parallel

* If there's a git lock one of the processes is doing something to the package
  so it's better to wait for the current proceses to finish so we can
  avoid the crash