Locking by deformable inserts or like parts