block: add bio_rw_flagged() for testing bio->bi_rw