blk: clear error flag when setting zero flag

Ref: pmem/issues#4