Make MemoryProfiler use multiple segments stored in TLS.

This eliminates a really stupid race condition caused by concurrent access to a single segment.

BUG=
R=sebmarchand@chromium.org

Review URL: https://codereview.appspot.com/171660044