We report second harmonic generation from a titanium indiffused lithium niobate waveguide resonator device whose cavity length is locked to the fundamental pump laser using an on-chip phase modulator. The device remains locked for more than 5 minutes, producing more than 80% of the initial second harmonic power. The stability of the system is seen to be limited by DC-drift, a known effect in many lithium niobate systems that include deposited electrodes. The presented device explores the suitability of waveguide resonators in this platform for use in larger integrated networks.