Villager AI broken when workstation is nearby
Villagers become unable to move when their workstation is placed nearby. Placing the workstation will cause villagers to freeze immediately, and they will only return to normal once the workstation has been broken.
After the workstation has been broken, they will walk over to where it had been placed, and then turn around and walk back to whatever they were doing before.
Only seems to affect librarians but have not tested all villager types. All librarians in my survival world were affected, but farmers and fletchers have not done it at all.
Some users report that even breaking the workstations does not unfreeze the villagers, and that they are missing data.
Code analysis can be found in this comment by Anomie X.