Add separate thread pool for global repository operations

Fixes #5240