Wavelength control of resonant photonic modulators via balanced homodyne locking