[PATCH 6.12 006/175] btrfs: fix race between setting last_dir_index_offset and inode logging