[SYCL] Correct spec about constness of get(properties_tag) member and add respective warning (#17947)
Currently some of our docs suggest using `get(properties_tag) {...}`
member in kernel functors to specify kernel properties while some
suggest using `get(properties_tag) const {...}`. But actually
`get(properties_tag) {...}` might not work under certain conditions, so
we should update the incorrect docs that they suggest readers to use
`get(properties_tag) const {...}` rather than `get(properties_tag)
{...}`.
Also as @Pennycook suggested, added a diagnostic warning to indicate the
user when:
-they have declared a `get(properties_tag)` member in the kernel functor
AND
-they declared `get(properties_tag){...}` rather than
`get(properties_tag) const {...}`
Updated the tests containing the non-const version of
`get(properties_tag)` as well.
---------
Signed-off-by: Hu, Peisen <peisen.hu@intel.com>