twig kint permissions buggy
Most likely the issue is probably related to caching, you can argue that it's a bug in devel/kint module and that is should have an implementation to handle this.

I would argue that the use of kint in a template file is made for running the site in development mode and if you disable caches (which is a really idea on an actual production site) it should work just fine.