This branch will fix RTC defect 16867. The fix will use condition flag inside
while loop in both ptfsal_closeHandle_listener_thread and ptfsal_polling_closeHandler_thread.
In function PTFSAL_terminate, first set the flag to stop above two two thread functions.
Replace pthread_kill with pthread_join for thread g_pthread_closehandle_lisetner.

Signed-off-by: Jeff Huang <huangz@us.ibm.com>
Merge branch 'tp/huangz_ptv4.1_rev_9_16867' into ibm_next_tmp