Avoid race condition in Regexp#match ยท ruby/ruby@abc0304

In certain conditions, Regexp#match could return a MatchData with missing captures. This seems to require at the least, multiple threads calling a method that calls the same block/proc/lambda whic...