A Phase Locked rf Magnetometer