adb: sysdeps: add support for joining threads.

Bug: http://b/27105824
Change-Id: I44e4edbb2a59565c35f1f3e6a6394ac258591f95
(cherry picked from commit a4f5e03e51664eb99d4682ca36eac03e3314a9ee)
3 files changed