[PATCH 5.4 119/129] dm thin metadata: Fix use-after-free in dm_bm_set_read_only