authz: skip permissions scheduling if no providers configured
Created by: unknwon
In addition to check if background permissions syncing is enabled, checking number of authz providers in advance so we can avoid scanning of records which will end up doing nothing if the instance hasn't enabled repository authorization/permissions.