Thin-disc theory with a non-zero-torque boundary condition and comparisons with simulations