Backport of "multiqueue: fix potential crash on shutdown" into 1.20
requested to merge tpm/gstreamer:backport-mr-2599-into-1.20-multiqueue-segfault-when-stopping-gcc11 into 1.20
Backport of !2599 (merged) "multiqueue: fix potential crash on shutdown".
Commits:
- e72434ba multiqueue: fix potential crash on shutdown