[flang] Do not use dialect conversion in `AffineDialectPromotion` (#156171)
This pass uses the rewriter API incorrectly: it calls
`replaceAllUsesWith`. This will start failing with #155244.
Instead of a dialect conversion, use the walk-patterns driver, which is
also more efficient.