Current locking in magnetically coupled long Josephson junctions