Locking of Dislocations without the Application of an External Stress: Experiment and Theory