Use a large lock around the CXI writing when using SWMR to bypass problems with multi threaded SWMR