The turnsSinceLastQuest check only applies for affinity quests, not building quests.
Pretty much all you need to know is that building quests are completely random (the probability is checked per-turn, rather than when the building is made), an affinity quest must spawn early, and you can't...