Pakistan wicketkeeper Adnan Akmal has been ruled out of the remainder of the Test series against Sri Lanka after injuring a finger.