Update `sourcegraph/lib/batches` and use `AllowFiles`
Created by: mrnugget
This is the follow-up to https://github.com/sourcegraph/sourcegraph/pull/26571
Created by: mrnugget
This is the follow-up to https://github.com/sourcegraph/sourcegraph/pull/26571