Btrfs: fix race between transaction commit and empty block group removal