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