fix exit&wait: double check father's wait thread