btrfs: simplify update of last_dir_index_offset when logging a directory