Optical linking of reference channel for lock-in amplifiers