Ensures that there is no race condition in memory backed expectation store.

BUG=skia:

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