Use critical sections to lock around accesses to cell contents. The critical sections are no-ops in the default (with GIL) build.