[PATCH 5.1 162/405] block: fix use-after-free on gendisk