lock the gem file