[PATCH 3/3] dm thin metadata: Fix use-after-free in dm_bm_set_read_only