Move all migration work into a single transaction and lock access to the schema_migrations table with access_exclusive