pthread join fix