Query projects in batches

Gerrit supports up to 10 queries in a single request.  Do the project
sync queries in batches of 10 to reduce network traffic.

Change-Id: I9aecbb91c1898d436fc54d21d1910badaddfef3b