Just for clarity, when you say lock I think you mean in the security sense rather than the database sense that an object is locked because it is being edited (for example)?
If so then I agree that CubeClearData should be respecting the lock security status of the cube.
That said I'm not surprised that it doesn't, the functions intent is to clear all the data in the cube and it sounds like that is what it is doing. I'd not be at all comfortable building a View Zero Out job that relied on the correct locking to be in place for it to function correctly. Much safer to use VIewZeroOut and then explicitly add what you want to clear.
------------------------------
Steven Rowe
------------------------------