Here is a patch against CVS (without my earlier patch)to disallow
LOCK x
if x is a view.
It does not use the SPI interface.
-- Mark Hollomonmhh(at)mindspring(dot)com