The last patch that fixed that animals should go through locked fances has made the tower guards not being able to pass locked Gatehouses or fence gates. They do target and try to attack but stays inside(in safety) and dont run out. The two solutions to this i have found atm is to unlock or to allow Kindom entry on gatehouse writ.