update mtime on write-stream end