database: make SetRepoPermissionsUnrestricted accept more than 65535 repo IDs
Created by: sashaostrikov
Just using ANY
with an array instead of IN
with enumeration
Closes https://github.com/sourcegraph/sourcegraph/issues/36451
Test plan
Existing integration test retrofitted to test new changes more thoroughly