[SYCL] Support build with shared libzstd (#22294)
Distros of Fedora family package only shared libzstd build against which
was not fully supported. This commit addresses the gap in a similar way
as it's already handled in few other cases in llvm. See for reference:
https://github.com/intel/llvm/blob/b09acde14f87bb417d5868905a684263beb32991/llvm/lib/Support/CMakeLists.txt#L28-L38
and:
https://github.com/intel/llvm/blob/b09acde14f87bb417d5868905a684263beb32991/lld/ELF/CMakeLists.txt#L9-L18
Fixes: https://github.com/intel/llvm/issues/22310
CC: @sarnex
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>