Knee lockimg

Hi hope Iam on the right page has anyone had their knees lock and how do you cope with it