Sangakkara reaches 10,000 runs as Sri Lanka totter