Finite-temperature scaling of magnetic susceptibility and the geometric phase in the XY spin chain