btrfs: avoid unnecessary lock and leaf splits when updating inode in the log