Fixing a race condition in makedirs when doit is run in parallel mode.
Merge pull request #1557 from getnikola/makedirs_race_condition

Fixing a race condition in makedirs when doit is run in parallel mode.