The whole movement should be done with knees bent just off lock, but totally stiff.
This is not easy, and getting your legs to remain stiff under heavy load is nigh on impossible, but that is the aim.
Locked out is plain dangerous, the weight will force the joint into negative bend. I know a number who have done it, all have knee issues.