add lock when uglify javascript file.