When is surgery the appropriate therapy for people with bone complications?

Ask the surgeon. The timing of any surgery is up to the operating surgeon, primary care physcian; and the patient.
Parathyroid . Over active parathyroid gland. Or infected bones or some broken bones or joint issues.