[SYCL] Relax device_only_no_iostream.cpp pattern matching (#22551)
In gcc@8 the test is failing cause `#include <iterator>` pulls in
transitively istream and ostream.
Our customer will not use gcc@8 and will rely on libc++ headers. So, I
relaxed the condtions to make
sure that sycl KHR headers do not include directly these headers.