“A prisoner who was mistakenly released on home detention curfew (HDC) and spent four months complying with the electronic tagging order before being returned to prison, has been told he must repeat the sentence in jail.”