Hydrostatic instability in the ocean