Btrfs: fix a bug in checking whether a inode is already in log