btrfs: fix readahead hang and use-after-free after removing a device