Sprinkle the flour over the beef, cook for a minute, stirring, and then gradually add the stout, stirring constantly. Add the stock, increase the heat to medium-high and bring to the boil. Stir in the thyme, season well, then reduce the heat and simmer for 2 hours, or until the beef is tender and the mixture has thickened.