message: Fixed threading problem in .lock file
diff: @@ -434,7 +434,9 @@ struct alignas(8) SharedGroup::SharedInfo {
  /// moved into the realm file. After that it should be feasible to either
  /// handle the error condition properly or preclude it by using a non-robust
  /// mutex for the remaining and much smaller critical section.
  - uint8_t commit_in_critical_phase = 0; // Offset 3
  + ///
  + /// Note that std::atomic<uint8_t> is guaranteed to have standard layout.
  + std::atomic<uint8_t> commit_in_critical_phase = 0; // Offset 3
  /// The target Realm file format version for the current session. This
  /// allows all session participants to be in agreement. It can only differ
  @@ -934,7 +936,7 @@ void SharedGroup::do_open(const std::string& path, bool no_create_file, bool is_
  // Validate compatible sizes of mutex and condvar types. Sizes of all
  // other fields are architecture independent, so if condvar and mutex
  // sizes match, the entire struct matches. The offsets of
  - // `size_of_mutex` and `size_of_condvar` are known to be as expected due
  + // `v` and `size_of_condvar` are known to be as expected due
  // to the preceeding check in `shared_info_version`.
  if (info->size_of_mutex != sizeof info->shared_controlmutex) {
  if (retries_left) {
  