fix WindowData: pthread_cond_signal before lock&wait will result in signal lost and timeout