Mechanically expandable devices located on the first prosthetic part for locking into or onto the second prosthetic part