ipc: multi-pthread synchronize with pthread mutex lock