Finder’s Lock checkbox is a soft signal; macOS apps can ignore it, and iCloud Drive frequently does. The BSD immutable flag (chflags uchg <file>) goes deeper — set at the file-system layer, ignored by no respecting tool. Howard Oakley’s piece is the canonical write-up of which apps respect which flag, and how iCloud Drive’s metadata-sync sometimes drops the lock between devices.