network_client add a lock

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>