[PDB] Defer public serialization until PDB writing