Adds Jarlock.lock need not to do manually