doc: describe optimizations using C11 atomic builtins