Don't allow the badge to go over 999 because it's slow to increment the badge.
Fix a bug where flashing indicators would not completely erase themselves when done flashing. Deal with fast repeating bell with flashing indicator better (allow flashes to completely finish). The problem was called because not all calls to -drawRect were due to iTermIndicatorsHelper calling setNeedsDisplay:.