Read and flush console buffer from the console thread immediately, instead of main thread. Otherwise (if main thread is busy) the console thread will keep adding idle source and then main thread will be unresponsive. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4067>