The lock and key paradox and the limits of rigidity in special relativity