Generalized Modifier Adaptation for Closed-Loop Systems with Unknown Controller