Many investors seem to have forgotten a hard reality: There are frequent periods when stock markets don’t do much.