[gstreamer] Make sure gstreamer source element is thread-safe