The issue may be if calibre is open in either computer while files in the library are being synced. (This would be a similar issue as using cloud storage)
Try closing down calibre (not just minimized) on both computers, then sync both libraries (including the database file) and see if both libraries then show the same in calibre.
https://manual.calibre-ebook.com/faq...rked-drive-nas