ART: Fix some thread-annotalysis issues in ProfileSaver

Remove where possible and replace with the instance_-referenced
locks.

Refactor the Run() flow: let Run() expect the profiler lock to
be held (and release it). Let RunProfileSaverThread() grab the
lock. This allows removing NO_THREAD_SAFETY_ANALYSIS from
RunProfileSaverThread.

Annotate methods with missing negative annotations.

Bug: 137339043
Test: m
Change-Id: Ief472cf03facdd4e9253501f2e4eebff4569a22c
2 files changed