A locking member for implantation in a hip joint of a patient is provided. The hip joint has a caput femur integrated with a collum femur having a center axis extending longitudinal along the collum and caput femur in the center thereof. The locking member is adapted to assist in the fixation of a medical device, having an artificial hollow caput femur surface, to the collum and/or caput femur, wherein said artificial caput femur surface comprises at least one extending portion adapted to clasp a portion of the caput and/or collum femur, and wherein said locking member comprises an element adapted to lock said artificial caput femur surface such that the caput femur remains clasped and restrained in said artificial caput femur surface.