st/egl: use a helper to get st_api from the loader