Fix issue #78

- Fix deadlock caused by ReRunUpdateQueryTask and UpdateQueryTask are waiting for each other due to the shared UpdateQueryTask and UpdateQueryTokenSource variable.
- Synchronize Update method