Create savepoints every 500 items during expensive upgrade steps for public_trial upgrade.

This is to avoid running out of memory during upgrade of large installations that still use a 32-bit Python.

This PR depends on https://github.com/4teamwork/ftw.upgrade/pull/50 being merged.