wined3d: Release the stateblock only after mode setting in wined3d_device_reset().