Sprinkle rbtdb.c with memory synchronization

73 jobs for !2908 with 1440-threadsanitizer-data-race-in-free-closeversion in 21 minutes (queued for 7 seconds)
latest merge request