fixing mutex movement when re-sizing AgentList vector