Remove file-scope non-constant static variables to support multiple inference sessions (#10481)
* Changed file-scope static variables to automatic variables or function-scope static const.
* Reduce load time overhead by using constexpr.
* Use node indices instead of node names to track inserted, deleted and changed nodes.
Co-authored-by: Satya Jandhyala <sajandhy@microsoft.com>