Connecting GPIO interfaces takes around 18 seconds

This one describes a similar situation, where a single transaction would help: Installing snap with multiple interfaces is slow due to incremental apparmor/seccomp changes