Fix a renumbering bug in condition regexp with a named capture.

Submitted by Ippei Obayashi in https://bugs.ruby-lang.org/issues/8583.