driver: fix stencil alpha in mesa

Set stencil operations to KEEP if write mask is 0.
When the write mask is 0 and the operations are not set to KEEP,
the GPU writes the depth buffer for the entire primitive and not
just the area where the stencil test condition holds.