You have found one of the problems trying to run calibre from a Network Attached device.
Please read the FAQ at the Calibre help site.
At best, NAS or network devices should only be used to SHADOW (one way sync only) the Library. Some folk
get away with using NAS, but t, then the question only is: When will it bite you