Fix overload test

 * Don't send more than `?DEFAULT_OVERLOAD_THRESHOLD-1` messages during
   normal part of overload test.
 * Abstract out some common code to update_msg_counter()