[PATCH 6.1 005/104] btrfs: fix race between logging inode and checking if it was logged before