ws
Add a 'Locked' context manager.

For use by immediate operations which should be done in the context of
a lock, but within a single request (e.g., updates done from a propertysheet
'set()').