Add 'TryLock' functionality to HeapInterface.

BUG=
R=sebmarchand@chromium.org

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