Add C API coverage for atomic write operations