authz: implement `authz.PermsScheduler`
Created by: unknwon
This PRs implements the PermsScheduler
for RFC 113.
This PRs adds schedule computation to PermsSyncer
In a high-level, it schedules four things:
- Users with no permissions
- Repository with no permissions
- X users with the oldest permissions
- X repositories with the oldest permissions
Notes
- Tests will be added in followup PRs.
Fixes https://github.com/sourcegraph/sourcegraph/issues/8708.