Niroshan Dickwella’s rapid fifty and Ramesh Mendis’ rearguard cameo power hosts on second morning