Move fileid map in SMF_Writer to SmallFileFD

So that only the file id mapping entries for open files are cached
in memory.