Simplify memory management of MongoWriteConcern