Merge "Fixes dumpstate crashed when shutdown the thread pool" am: 6fe1d3d3bb am: bb0e037a24 am: 51a36dd916 am: e1bbbe7ab2

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1641960

Change-Id: I196f7fcae5ed18d456b51d863df7a3ab27c0e38a