Change g_cond_signal to g_cond_broadcast when many threads can be waiting

Change-Id: I0251e083e90c251536bfd78ddf6b40d0cab483f4