Potential race between module and snapshot writing to the same file?