Race condition in StartWebThread causing crash