This should be safe enough (the table is loaded into migration_state, so the only thing that could happen is that multiple threads try and run the same migration at the same time, but that would cause other problems anyways).