Fix TSAN error in skia/chromium ref count debug checks

Using std::atomic to make debug checks thread safe.

BUG=509693
R=senorblanco@chromium.org

Review URL: https://codereview.chromium.org/1494633002

Cr-Commit-Position: refs/heads/master@{#363274}
1 file changed