st/xorg: fix refcounting bugs introduced in earlier commit