[IRgen] Update modules autolink metadata to use module flags (as now specified
in the LangRef).