fix duplicate dprintf in forkwork #4049