Use init and clear for GMutex and GCond