Lock heap manager before invoking the heap checker.

This minimizes the chance of a race occurring between the heap checker and other threads.

BUG=
R=sebmarchand@chromium.org

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