blk: only one flag allowed at the time

- clear other flags when setting any flag
- add unit tests

Ref: pmem/issues#4
Merge pull request #43 from plebioda/btt-clear-error-flag-when-setting-zero-flag

blk: only one flag allowed at the time