Reset @message_id and @synchronize_id when they've reached their limits.