"the way to lock down programs from this sort of access is to use flatpak"
Bwawwwhhhaaaahhh
There is so much drama between Gnome and Wayland that if you spend any amount of time looking you will run out of popcorn.
For example in Windows, the screen lock can't be removed without the user authenticating.