Phase locking of Josephson flux-flow oscillators in nonuniform microwave fields