Made fields used as locks final.