Revert "Fix engine locale param by monkey patching ActionDispatch::Routing::Routeset#finalize!."

This reverts commit 5fa02553271c363e1597c95837378f136d687040.