Sending the EOS event while the pipeline is PAUSED can deadlock on the stream lock if a sink is currently blocked because of pre-rolling. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4345>