librados: Add C API coverage for atomic write operations

Signed-off-by: Christian Marie <christian@ponies.io>
Merge pull request #1088 from christian-marie/wip-c-atomic-writes

librados: Add C API coverage for atomic write operations

Reviewed-by: Sage Weil <sage@inktank.com>