The following functions have been implemented in
When max_wire_version >=5, these functions need to return false (or some other indication of failure) on writeConcernError and parse the error.
Create a new function: _mongoc_client_command_with_write_concern. Its code is just like mongoc_client_command_simple, except that, just before it calls _mongoc_client_command_with_stream:
...then it copies the command and appends the write concern to it.
Call this new private function from all the "_with_write_concern" public functions.