[PATCH 5.8 171/186] dm thin metadata: Fix use-after-free in dm_bm_set_read_only