Fix some worker-mode replication handling not being correctly recorded in CPU usage stats.