red-brick: Adapt to latest API changes

update_identity() fails if testing is done with an older redapid,
because there was arecent API change.
red-brick: Refactor duplicated write_async chunk code into new method

Catch protocol level errors and report them with the error callback.