Set self.stream in bsonfileoutput