applications: Update snap permissions code to recent changes

Fixes #1845
7 jobs for applications-snap-update in 4 minutes (queued for 1 minute and 6 seconds)