Revert "[SYCL] Fix device image lifetime for jit_compiler (#22785)" (#22855)
This reverts commit 5d0359328690158559194f666bdad6d11751225a.
This fix is still valid and should be reapplied but jit_compiler uses
sycl_jit library and we need to fix sycl_jit resources lifetime as well.
sycl-jit uses singleton approach to store its resources.
it the current state sycl_jit resources are destroyed before test static
cache destruction happens and before sycl_jit library is unloaded.
There is no perfect solution to make sycl_jit resources to live longer.
Possible fixes are: introduce init/close to sycl_jit library to be able
to control obj lifetime or use linux ctor/dtor priorities (as it is done
for SYCL RT) where sycl-jit resources will be allocated/deallocated.