[PATCH stable-5.4.y] btrfs: fix race between marking inode needs to be logged and log syncing