Merge "Detach pollThread only if it is joinable" into pie-vts-dev
am: cf4a2880c9

Change-Id: I9845ff5af2235cfbdb92c0a066a4960d1dfdc2d5