[SYCL][Graph] Add destruction callback spec addition for modifiable command graph (#22083)
- Introduces spec for graph destruction callback registration functions.
User's may provide a function and set of arguments to be invoked on
graph destruction.
- This functionality is expected to be used by libraries that are
captured in the graph. In many cases, these libraries allocate resources
that should be destroyed alongside the graph.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>