Gem file lock