Use pthread_cond_timedwait & pthread_cond_signal in flush & playback
instead of SkCondVar.

It is added to prevent infinite block in flush.