Add a way to check if we're the only binder thread

libhidl will want to know this when deciding whether to poll or to wait
for a callback.

Bug: 71625413
Test: builds, boots
Change-Id: I9b9b66791951cdcf9a50733c91800d6da8a278a2
2 files changed