Update pthread.hpp

improved `operator =' for posix::pthread