Synchronize access to fetch and operation arrays.

This should fix the "mutated while being enumerated" crashes.