Self frequency-locking of a chain of oscillators