Fixed Critical: g_iteration_stop(): Got error while pthread_cond_timedwait

It was caused by difference of pthread_*() implementation in GNU libc and BSD libc