deleted pthread_join() from remove_member(); use cancellation points from pthread_testcancel() instead