Fix fsc corrupting assemblies when generating pdb files

Fixes a bug that was introduced in d32feca1169a00d50bcc81b9f30e3f07134d062b.

Pertains to the change in ilwrite.fs line 4546. Produced assembly is reopened with `FileMode.Create`.

Fixed by adding a new method to the `IFileSystem` interface.