Fix race in SkTypeface_FreeType::onCountGlyphs.

Found by TSAN. This makes the operation slightly slower, but it is
not on any user's hot path.

BUG=skia:5238

Review-Url: https://codereview.chromium.org/1940613002
2 files changed