unique_ptrify the diagnostics in CXDiagnosticSetImpl