Fix issue #123 where multiple sync threads are allowed to run

Causing duplicated entries in the local.xml and on Google