Ensure util.mkdir_dash_p() fails if its target is a non-directory, and
succeeds if the target directory exists after an mkdir() race with
another process.