[SYCL][TEST] Remove check_has.cpp dependency on metadata order (#11809)
Previously, we committed https://github.com/intel/llvm/pull/9642 aiming
to break dependency on metadata order for check_has.cpp but the commit
was broken unexpectedly. This PR re-lands it.
---------
Signed-off-by: jinge90 <ge.jin@intel.com>