Merge "Fix bug in finding another thread's TCB." am: e4f7c6d70b

Original change: https://android-review.googlesource.com/c/platform/bionic/+/1419435

Change-Id: I6d7cea931fcf1b0b5d3576b8fca4cb2e7e9dfae3