Stability of the thermohaline circulation examined with a one-dimensional fluid loop