applications: Update snap permissions code to recent changes

Fixes #1845
7 jobs for applications-snap-update in 34 minutes and 55 seconds (queued for 1 second)