Death row inmate granted competency hearing