btrfs: deal with errors when checking if a dir entry exists during log replay