SERVER-12554 Lazily yield on count queries.

This avoids a regression when scanning a small set of documents.
Merge remote-tracking branch 'upstream/master'