While stress can signal the need to be more thoughtful, it can also shut down thinking and make leaders behave in unexpected ways.