st/xorg: Fic bug and close drm_api at proper place