Counsel who accepts a dock-brief and for a fee paid by the state undertakes to defend a prisoner