As approaching extension, medial condyle rotates medially to lock

Unlocking by popliteus (tibial nerve) causing lateral rotation of the joint