Backport of "vulkanoverlaycompositor: don't do a potential use after free" into 1.22
requested to merge tpm/gstreamer:backport-mr-4143-into-1.22-vkoverlay-use-after-free-overlay-meta into 1.22
Backport of !4143 (merged) "vulkanoverlaycompositor: don't do a potential use after free".
Commits:
- a1bfd866 vulkanoverlaycompositor: don't do a potential use after free