Record: Don't allow exporting etc until the pipelines have flushed

Previously if you started a video export things may go Wrong™ if the
pipelines haven't been allowed to finish flushing to disk the streams to
be mixed won't be valid.