[libomptarget] Refactor syncthreads macro to inline function
See also abandoned D66846, split into this diff and others.
And here too
#endif // __clang__
Phabricator has decided to mix this patch in with the other patches that have landed on master since initially creating it. Presumably my mistake for rebasing. I'll abandon this and create a new diff. Sorry for the noise.