[libomptarget] Refactor syncthreads macro to inline function See also abandoned D66846, split into this diff and others.
Rev 2 of D66855
LG