Registers the AG Grid Community modules exactly once for the lifetime of the application. AG Grid requires modules to be registered before any grid is instantiated; calling this guard from each component constructor keeps the registration lazy without risking duplicate registrations.