Fix race condition in rom importer.