Add :locale param to routes of scoped engines

This prevents an invalid "?locale=xx" from being added to the
querystring on engine routes for engines mounted with a scope that
has its own :locale parameter.

Yes, this works by monkey patching core rails :neutral_face: