Separated mutexes for stack_perform and get_idle_downloaders to avoid unnecessary waiting