ensure that flush calls the callback, do it for the stream if it doens't define any arguments