st/mesa: more fixes for stencil ref change.