removed goto(), and added comments for tox.c tox_thread()

replaced goto() with a do{}while();