[R21.4] Arnaud Giersch's patch for regex.c / fix Gnus infloop