codeintel: add tests which cover sub-repo permissions filtering logic for implementations query
Created by: sashaostrikov
Should be merged after https://github.com/sourcegraph/sourcegraph/pull/29328
Closes https://github.com/sourcegraph/sourcegraph/issues/29240