Fixing optimistic concurrency + memory profiling sample