I had always assumed the driving ban couldn't be served while the prisoner was unable to drive due to being inside. The law certainly used to be that way as my father's wife - this was way before they met BTW - spent time behind bars after a driving offence and her driving ban didn't take effect until the day of her release so I have always thought that was still the case.