wined3d: Use core functions to set the stencil mask on GL 2.0+.