Quark deconfinement and the duration of short gamma-ray bursts