The iTunes Library files can only be opened on one machine at a time.
Keep separate iTunes folders on both machines, and keep only the media folders on the networked drive with aliases into the iTunes folder.
You'll have to add everything that comes in new to both libraries, manually, every time, to both machines.
Pain in the arse, but works.