Merge "Add Thread#join to guarantee the termination of the thread" into main am: 976e52a2c4

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2840316

Change-Id: I2c74929954d268c639eb604dd483a261f97c3461
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>