[SYCL] Allocate sycl::handler on the stack when possible (#17319)
There are two set of changes:
1. On hot path handler_impl is allocated on stack.
2. handler keeps reference to queue shared_ptr, not shared_ptr.
---------
Signed-off-by: Alexandr Konovalov <alexandr.konovalov@intel.com>
Co-authored-by: Ewan Crawford <ewan.cr@gmail.com>
Co-authored-by: Alexey Bader <alexey.bader@intel.com>