Use file locks to ensure safety when being installed in a parallel environment
Merge pull request #737 from Who828/master

Use file locks to ensure safety when being installed in a parallel