Linear nonsaturating magnetoresistance in kagome superconductor CsV3Sb5 thin flakes