Generally, locking of the fingers or thumbs are caused by trigger fingers.
This is a benign condition in which the tendon becomes entrapped around a structure called the A1 pulley. If this is painful, an injection or surgery
can improve the symptoms. If this is not painful, you can live with this as long as you have full range of motion and full function.