when try to get the head of the private queue, thread will spinwait while the next pointer of the current head is invalid
when try to get the head of the private queue, thread will spinwait while the next pointer of the current head is invalid

HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit