Transition to time-dependent flow in highly viscous horizontal convection