Adding lock to enforce same gems