Address a potential race in File.mkdirs() with a double exists() check

A complete solution will make mkdirs() atomic with some coordination,
which, currently, is counter to the desired architecture.