update PThread add mutex type.