for compat. with clim-sys. Rework the with-lock-held macro; bug fixes; faster version for the Pentium using new %instance-set-conditional inline function.