[SYCL][UR][L0] Fix urEnqueueEventsWait (#18343)
The path for non-immediate command lists was incorrect.
queue->synchronize() was called without closing and executing command
lists leading to deadlock.
Fix this by replacing synchronize() call with executeCommandList()