Replace uses of atomicModifyIORef with atomicModifyIORef'.