Add mutex to guard the shared string pool content.

Change-Id: I0eb97d0fbeaefd8a1c86d240ed8bd7f208fb662e