Fixes a stack overflow on Windows/MSVC. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8588>