Another component of the locking mechanism is medial rotation of the femur on the tibia during extension. Medial rotation and full extension tightens all the associated ligaments.
Another feature that keeps the knee extended when standing is that the body’s center of gravity is positioned along a vertical line that passes anterior to the knee joint.
The popliteus muscle unlocks the knee by initiating lateral rotation of the femur on the tibia.