actually clean up expired libco threads, plus also copy in pid