Add lock in key config.