Unify TranslogStream interfaces to accept a stream instead of a File

Also correctly closes translog streams when they are no longer needed.