Add functions to query #threads and looper state.

Can't submit until we can make ABI changes to libhwbinder.

Bug: 35117173
Test: boots
Change-Id: I10eeb128998e94b583be50c9968603ab656f0f28
4 files changed