Use proper atomics for the thunk array