Instabilities in the dissolution of a porous matrix