The onset of chaos in nonautonomous dissipative dynamical systems: a low-order ocean-model case study