I did some testing regarding villagers and found that their workstations have problems if they are in minecarts. Firstly, the game seems to not track that the workstation is taken if the villagers that took it is in a minecart or is put in a minecart. Furthermore, a villager in a minecart can share a workstation with other villager(s). This is simple enough to recreate
Please check if this is still an issue for you in 1.16 Release Candidate 1 or later.