Synchronized motion of noncontact rack-and-pinion devices subject to thermal noise