Alter regexp on initialize to avoid extra ast pass
Alter regexp on initialize to avoid extra ast pass

Along the same lines as #38901, #39903, and #39914, this commit removes
one pass through the journey ast in an attempt to improve application
boot time.

Before this commit, `Mapper#path` would iterate through the ast to alter
the regex for custom routes. With this commit we move the regex
alterations to initialize, where we were already iterating through the
ast.

The Benchmark for this change is similar to what we have been seeing in
the other PRs.

```
Warming up --------------------------------------
               after    13.121k i/100ms
              before     7.416k i/100ms
Calculating -------------------------------------
               after    128.469k (± 3.1%) i/s -    642.929k in 5.009391s
              before     76.561k (± 1.8%) i/s -    385.632k in 5.038677s

Comparison:
               after:   128469.4 i/s
              before:    76560.8 i/s - 1.68x  (± 0.00) slower

Calculating -------------------------------------
               after   160.000  memsize (     0.000  retained)
                         3.000  objects (     0.000  retained)
                         0.000  strings (     0.000  retained)
              before   360.000  memsize (     0.000  retained)
                         6.000  objects (     0.000  retained)
                         0.000  strings (     0.000  retained)

Comparison:
               after:        160 allocated
              before:        360 allocated - 2.25x more
```

MSP-Greg/rails,yawboakye/rails,repinel/rails,yalab/rails,yahonda/rails,bogdanvlviv/rails,eileencodes/rails,joonyou/rails,yawboakye/rails,Stellenticket/rails,starknx/rails,rafaelfranca/omg-rails,tjschuck/rails,tgxworld/rails,bogdanvlviv/rails,repinel/rails,Vasfed/rails,kmcphillips/rails,starknx/rails,tjschuck/rails,kddeisz/rails,Envek/rails,schuetzm/rails,eileencodes/rails,esparta/rails,schuetzm/rails,Erol/rails,georgeclaghorn/rails,eileencodes/rails,MSP-Greg/rails,schuetzm/rails,joonyou/rails,lcreid/rails,rails/rails,tgxworld/rails,tgxworld/rails,MSP-Greg/rails,betesh/rails,yahonda/rails,yawboakye/rails,vipulnsward/rails,rails/rails,tjschuck/rails,yalab/rails,Edouard-chin/rails,bogdanvlviv/rails,EmmaB/rails-1,lcreid/rails,vipulnsward/rails,bogdanvlviv/rails,rafaelfranca/omg-rails,Vasfed/rails,BlakeWilliams/rails,lcreid/rails,Envek/rails,kmcphillips/rails,Vasfed/rails,joonyou/rails,Edouard-chin/rails,esparta/rails,georgeclaghorn/rails,repinel/rails,EmmaB/rails-1,starknx/rails,rails/rails,Edouard-chin/rails,Stellenticket/rails,betesh/rails,Erol/rails,tgxworld/rails,kddeisz/rails,BlakeWilliams/rails,Erol/rails,yahonda/rails,eileencodes/rails,repinel/rails,yalab/rails,esparta/rails,rails/rails,tjschuck/rails,Edouard-chin/rails,vipulnsward/rails,kmcphillips/rails,esparta/rails,kddeisz/rails,BlakeWilliams/rails,schuetzm/rails,Envek/rails,rafaelfranca/omg-rails,EmmaB/rails-1,vipulnsward/rails,BlakeWilliams/rails,georgeclaghorn/rails,yahonda/rails,Envek/rails,betesh/rails,betesh/rails,Vasfed/rails,yalab/rails,georgeclaghorn/rails,lcreid/rails,Stellenticket/rails,kddeisz/rails,yawboakye/rails,Erol/rails,kmcphillips/rails,joonyou/rails,MSP-Greg/rails,Stellenticket/rails