Encapsulate all mkdir calls into one tx (See #10740)

A single transaction can be used from suggestImportPaths
to create all directories needed for an entire fileset.
This brings one call of `importFileset()` from 16 down
to 6 seconds.