[0.6.250] Improve to defend the spurious wakeup issue of g_cond_wait_until()