In gcc4.8 in Mac, When use CALL() with &data where data is in stack. It get copied multiple times and the mutex_lock is not longer affective. Fixed the bug by using thread_t.
Fix compling problems in gcc not supporting omp task