A logic issue was addressed with improved state management. This issue is fixed in macOS Ventura 13, iOS 16, iOS 15.7 and iPadOS 15.7, watchOS 9, tvOS 16. A user with physical access to a device may be able to access contacts from the lock screen.
https://support.apple.com/en-us/HT213486
https://support.apple.com/en-us/HT213488
https://support.apple.com/en-us/HT213487