At this time calibre does not cache metadata from files on the device. This is a planned feature (no dates yet). Most likely it's getting hung up on a particular file. Start by disabling the PDF metadata reader in Preferences, Plugins, Metadata readers.
Also in Plugins, Device Interfaces, Kindle DX, you can turn off reading metadata from files completely.