Android: Auto-Flush Mark-as-Read Batches at Max Size

Android was missing logic to implement the API contract for limiting mark-as-read batches to a size of 5, thereby occasionally creating very large batches that would fail.