lock gem file