To fix chat crash, lock agent list when updating from network, simulating, or rendering.

...gent

list when we're updating from the network, simulating, or rendering.  I think
there are likely to be other synchronization issues, but this is a start.