[mlir] Enable perfect forwarding for `addWithLabel` and `insert` (NFC) (#172939)
This PR adds perfect forwarding support to
`RewritePatternSet::addWithLabel` and `RewritePatternSet::insert`,
preventing unnecessary copies when forwarding arguments, consistent with
`RewritePatternSet::add`.