authz: various fixes to `PermsSyncer`
Created by: unknwon
This PRs fixes two minor things:
- Exclude site admins from the list of users with no permissions.
- Fix wrong form of argument passed to
QueryContenxt
. - Set
dbconn.Global
synchronously.
Stacked on #8927