Locked notes disappeared after upgrade to Monterey
My 'locked' notes in the Notes app disappeared after I upgraded to Monterey. They are not on my machine nor are they on iCloud.com or any of my other devices. They were not deleted and there is no "recently deleted" folder, locally or on iCloud.com.
If I try to restore the Notes database by using a Time Machine backup of ~/Library/Group Containers/group.com.apple.notes from the day after the upgrade, the locked notes are there! Unfortunately, the Notes app crashes as soon as I try to open the note in question and all the notes are gone once it restarts. If I restore the database from today, Notes works fine but the locked notes are gone again. If I restore from before the upgrade, Notes doesn't crash but it doesn't have any notes either. (I'm doing all this with my machine disconnected from the internet so I don't scramble my notes on iCloud.)
This exercise tells me that my notes are still there, but how to get to them? Even if I manage to find them in the SQL databases Notes uses to store the notes, they'd presumably be encrypted since they're locked. I need a way to both read the notes and unlock them. I have the password, so that's not a problem—I just need Notes to not crash long enough for me to enter it.
Any advice? Thanks in advance!
Mac Pro