Fix result check for pthread_join on shutdown/cleanup.
Fix result check for pthread_join on shutdown/cleanup.

chenchongli/kinetic-c,rcrane/kinetic-c,Kinetic/kinetic-c,Kinetic/kinetic-c,rcrane/kinetic-c,rcrane/kinetic-c,chenchongli/kinetic-c,Kinetic/kinetic-c,kinjalcpatel/kinetic-c,benmcclelland/kinetic-c,kinjalcpatel/kinetic-c,Seagate/kinetic-c,chenchongli/kinetic-c,benmcclelland/kinetic-c,Seagate/kinetic-c,benmcclelland/kinetic-c,kinjalcpatel/kinetic-c,rcrane/kinetic-c,Kinetic/kinetic-c,chenchongli/kinetic-c,kinjalcpatel/kinetic-c,benmcclelland/kinetic-c,benmcclelland/kinetic-c,Seagate/kinetic-c,Seagate/kinetic-c