Backport bugfix for missing fence on file import

First time reading an imported file, need to block until file chunk is
loaded.