[PATCH v7 1/6] mf: Replace state variable with clock_state.