[PATCH 4.19 250/293] dm thin metadata: Fix use-after-free in dm_bm_set_read_only