The 500 ks Chandra observation of the z=6.31 QSO SDSS J1030+0524