Samarawickrama's unbeaten 48 and Praboda's career-best three wickets helped Sri Lanka survive Bangladesh scare