Matthew Kuhnemann took five wickets, including three on the fourth morning, as Sri Lanka crumbled in a 25-ball blitz on the fourth morning of the first Test.