Previously we were checking for opencv dep in 2 different places, and the checks would vary in terms of how complex and exhaustive they were. Move the check into the libs module and reuse the result later on. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3016>