Btrfs: fix unwritten extent buffers and hangs