Fix incorrect syncing behavior when book matching is run for a second time while connected. This happens when the user changes the library or selects "Update cached metadata on device".
Merge branch 'master' of https://github.com/cbhaley/calibre