I have yet to see a village I am trying to protect spawn a golem. I've seen 3 villages wiped out after the new update because I could not handle being the only one killing mobs and or raiders and still try to obtain resources for trading or iron for armor and golems. After the third village died I just deleted the world. I am playing on survival mode with normal difficulty and fully stock or default settings. I have one world on realm so that my grandson and I can play. I have had to create 3 golems as they don't seem to last more than a week of day cycles.
Lock all your villagers in a larger, more sturdy building such as a temple or church. Then build a double or triple tall fence between buildings and around the perimeter, cobble wall works best. And finally light up the inside everywhere. Then you can release villagers (although this still does not solve the problem of sieges in larger villages). ***actually, it does, as of 1.14.4.