stream: fix emfile trick

No comments.