[SYCL] Fix build when not using XPTI tracing (#11742)
The build was broken with:
```
/home/hugh/llvm/sycl/source/handler.cpp:247:48: error: ‘CmdTraceEvent’ was not declared in this scope
247 | auto EnqueueKernel = [&, CmdTraceEvent = CmdTraceEvent,
| ^~~~~~~~~~~~~
/home/hugh/llvm/sycl/source/handler.cpp:248:42: error: ‘InstanceID’ was not declared in this scope; did you mean ‘distance’?
248 | InstanceID = InstanceID]() {
| ^~~~~~~~~~
| distance
```
When XPTI tracing is not used.