When the user pushed the lock device action on a macOS 14, it returned an acknowledgement but the device wasn't locked. Which resulted in loss of data on the device.
For help with locking and unlocking your device, please post in the Apple Support Community. The Apple Developer Forums are for questions about APIs and features intended specifically for developers.