authz: use FilePermissionsFunc in FilterActorFileInfos
Created by: keegancsmith
FilePermissionsFunc is significantly faster than calling ActorPermissions per file. FilterActorFileInfos is used by ReadDir on the gitserver client, so should speed up those operations.
Test Plan: go test
Part of https://github.com/sourcegraph/sourcegraph/issues/41347