Fix for bug #22041, the PDB atom serial number error from the structure.write_pdb user function.
This was reported at https://gna.org/bugs/?22041.
The problem is that the structure.write_pdb user function preserves the atom numbering from the
original structure and uses that for the atom serial number. However the atom serial number must be
replaced with sequential values to produce a valid PDB file. This is fatal for any CONECT records.