thanks for writing to us
ACCORDING TO YOUR HISTORY
you may be suffering from knee ligament injury
Locking suggest meniscus
My suggestion would be to do MRI KNEE and management accordingly.
Another differential is Rheumatoid arthritis physiotherapy
- SWD ,IFT WILL HELP
You need clinical examination from surgeon.
for further query contact my profile directly.