md: use set_bit/clear_bit instead of shift/mask for bi_flags changes.