Handle concurrent increase of site.mod_id