Magnetic reconnection during tokamak startup