Merge changes from topics 'adb_thread', 'adb_loopback'

* changes:
  adb: statically link libbase into the tests.
  adb: kill adb_thread_{create, join, detach, exit}.
  adb: don't try to resolve 'localhost'