It's lock/unblock block, _if_ an error condition occurs. Normal flow is for it to lock, and then CFileChangeWriteLock::detach() to be called to retain the lock.

I don't know whether CFileChangeWriteLock or CFileChangeWriteLockBlock is a better name tbh.