Fix ut-stream truncate deleting file before closing stream.
Fix ut-stream extend deleting file before closing stream.