Mathews proves saviour again as Sri Lanka defy New Zealand