Add VMRuntime.runFinalizationWithTimeout

Used by native allocations to prevent deadlocks.

(cherry picked from commit 51855ccb72d01a28babedbaed70974d4f3697ab0)

Bug: 21544853
Change-Id: I57b2f7ae8b74185922eb3c15ba0ab71a4d2348aa
3 files changed