In a large pot over medium heat, soften the onions in the butter for 15 minutes, stirring occasionally. Continue cooking over high heat for 15 minutes or until the onions are caramelized, stirring constantly and scraping the bottom of the pot. Deglaze with the wine and cognac. Let reduce until almost dry. Add the chicken and beef broths, the toasted flour and nutmeg. Mix well.