Structural Plasticity as Active Inference: A Biologically-Inspired Architecture for Homeostatic Control