block: make bio_rw_flagged() return a bool