NEW YORK — This month’s sell-off for stocks marked the first big test of investors’ mettle in years. And many ended up doing exactly what the...