add lockfile when start building vms, fixes #2