Some osteoporosis risk factors, such as older age, can’t be changed. But others are things you can control.