Fixed problem of thread safe in the UpdateManager
This was leading to dead lock, because of a missing second check of the condition after having the write lock
This was leading to dead lock, because of a missing second check of the condition after having the write lock