btrfs: fix log replay failure due to race with space cache rebuild