It’s time for those struggling with a midcareer slump to consider another path.