MSAFed: Generalized Multi-Stage and Adaptive Federated Learning for Test-Time Medical Segmentation | Synapse