make smaller queries when sending out bulk email (LMS-2718)

@ormsbee 
@jarv 
@symbolist 

Limits the size of queries when generating items for subtasks

https://edx-wiki.atlassian.net/browse/LMS-2718