btrfs: fix race on ENOMEM in alloc_extent_buffer