Phase locking of fluxon oscillations in long Josephson junctions with surface losses