In the current AI implementation, AI tries to build the Tavern only in the case of Knight's Castle. But for Sorceress Castle, the Tavern is also required - for building Dwarf Cottage (which is required for succeeding army buildings). So, if a Sorceress Castle has not prebuilt Dwarf Cottage, then AI can't build it (because it must build the Tavern first, but current implementation doesn't allow that); and so far, AI cannot develop further army buildings in that Sorceress Castle. When such a Castle is the starting castle of AI player, then this player is merely unable to gather any serious army forces against monsters on the map (and other players), and it's development is blocked.
See in the source code (Rev. 3269): file ai_castle.cpp, function void AICastleDevelopment(Castle & c) - line 63 and below.
fixed, rev. 3271.
thanks you!