[fix] Fix a minor unsent-messages bookkeeping issue that was causing a test to fail on windows. Also stress the batching code even more.