perf(uri) optimize uri normalization code (#7100)
perf(uri) optimize uri normalization code (#7100)

### Summary

This commit tries to do several optimization on our url normalization code
that is executed on our hot path.

Optimizations:
1. runs regex only when it looks like it is needed
2. does `/..`, `/.`, and `//` normalization only if needed
3. moves anonymous callback functions to module local functions
Kong/kong,Kong/kong,Kong/kong