Doesn't happen today, but I have a patch where unlocking a texture may also trigger an unlock of a cached stencil buffer.
Closed with r2046 (verbal lgtm from mike)