For TMemFiles, Write() file onOpen to register with server and avoid relying...
For TMemFiles, Write() file onOpen() to register with server and avoid relying on first flush for event data. This should fix problems with (Run2 style) Derivation, where only few events get written causing sequencing issues with event and metadata.