chart2: take the mutex to update the chart structures.

Change-Id: I8ee6ec81913c008eeb67cd70a2490b523b0d8177