[SYCL][Graph] Add get_id() public member function to modifiable command graph (#22497)
- Follow-up to #22194 with native recording support.
- Adds monotonically increasing graph IDs per process. Graph ID
uniqueness is guaranteed in an application for the set of graphs using
native recording and additionally for the set of graphs not using native
recording. The application is required to differentiate if they intermix
backends and require uniqueness.
- For native recording backends, IDs are fetched from the native API. If
graph ID support is not present, then a fallback to a SYCL graph
internal counter is used.
---------
Co-authored-by: Adam Fidel <adam.fidel@intel.com>