Researchers tracked 12,000+ adults and found how three common midlife risk factors may influence dementia risk later in life.