Guard profile_cache_ with profile lock

Prevent possible race conditions with SIGUSR1.

Bug: 174924436
Test: test.py

Change-Id: I799b9815ed31ed755104e69337b35e09ecad9b83
2 files changed