Local storage: Always try to create directories, handle already existing.

This reduces the chances of races where two client try to upload the same
file.
Merge pull request #3175 from Mook-as/local-storage-concurrent-create-directory

Local storage: Always try to create directories, handle already existing