
Based on the review comments from Ben Manes in [1], using Cache of locks is prone to races. Using Striped locks technique is a better technique for this use case. [1] https://gerrit-review.googlesource.com/145750 Bug: Issue 7903 Change-Id: I94868904befc0f0454ae518f79888a8473ad97c2