A fix is now in syncprov.c r1.312. Would be great if someone could review it if it makes sense. Testing results look good so far.