Production of D* Mesons with Dijets in Deep-Inelastic Scattering at HERA