Workaround race condition in the partition scanning logic

Fix #114
3 jobs for partscan-race-condition in 23 minutes and 6 seconds (queued for 2 seconds)
Status Name Job ID Coverage
  Lint
passed shellcheck #5201

00:00:16

passed shfmt #5202

00:00:11

 
  Build
passed build #5203

00:22:50