Fix polling logic, which is running only 1 worker in parallel.

This is a timing issue which is reproducible using remote mongo server
only.