Doing that is fraught with danger of deadlocks and is not conceptually part of the API contract. The object lock is generally intended for internal-object-use only. If another lock is needed, that should be added separately. This lock was erronously added as part of: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1118 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1233>