Race condition fix for SF bug #978104: nedit -sync option.