Eliminate hashmap copies during function inlining (#17439)
### Description
Eliminate unnecessary HashMap copies. This saves 22% of CPU usage on a
reference Dynamo exported model.
### Motivation and Context
Our function inlining is currently slow.
Before:

After
