Locking on a megathrust as a cause of distributed faulting and fault-jumping earthquakes