[gstreamer-plugins-base: 178/216] Backport a deadlock fix