[DF-185] Moved mutex.lock() before getting size of animations vector