Lock jaw is a problem of the joint, it is as similar problem as having problem in knee joint.
Depending upon the degeneration already happened in the joint bone or capsule, the treatment may be medicinal/splint/surgery.
The diagnosis can be made by simple x rays or CT or MRI.
Next Steps
Kindly see a oral and maxillofacial surgeon for further evaluation