Dump stack trace without holding the global lock in Watchdog

Since the dumping could last quite long.

Bug: 182937137
Test: adb shell am hang & check the log
Change-Id: I60c0b4aa5fab2f7e7ed6c9bea0365956b446967c
1 file changed