The principle
In friction locking, a force holds rather than a shape. In the narrow sense this is friction: a contact force presses two faces together, and the friction force F = μ · N prevents sliding. In the wider sense suction cups and magnets belong here too – their holding force acts perpendicular to the face, but across it they also carry by friction only.
The load stays for exactly as long as the holding force exceeds everything trying to release it. That distinguishes friction locking from positive locking, where geometry blocks the movement.