fix freeguithread remaining shared data problem