Automatic thread rolling machine