[PATCH 5.10] block: fix and cleanup bio_check_ro