The legal team running an inquiry into the death of a man in custody has quit, plunging the long-running probe into fresh crisis.