The "problem" is that yes the msg.flush is added to the properties of whatever msg you have - if that is the ONLY property then the delay node will not send it on... so you need to delete the existing msg.payload and maybe msg.topic and any other properties using your change node. (Or use a function node to create a "clean" msg with only msg.flush=1 .
eg
[{"id":"31721b1737c1207d","type":"delay","z":"257090c402849288","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"20","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":430,"y":520,"wires":[["055e2529428f571a"]]},{"id":"055e2529428f571a","type":"exec","z":"257090c402849288","command":"sleep","addpay":"","append":"5","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":630,"y":520,"wires":[["dde23da0b5477d33"],[],["d5e88b9341d02686"]]},{"id":"dde23da0b5477d33","type":"debug","z":"257090c402849288","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":500,"wires":[]},{"id":"d5e88b9341d02686","type":"change","z":"257090c402849288","name":"","rules":[{"t":"set","p":"flush","pt":"msg","to":"1","tot":"num"},{"t":"delete","p":"payload","pt":"msg"},{"t":"delete","p":"topic","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":620,"wires":[["31721b1737c1207d","481eafc6e4f48447"]]},{"id":"481eafc6e4f48447","type":"debug","z":"257090c402849288","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":670,"y":620,"wires":[]},{"id":"7e0141d6ac754791","type":"inject","z":"257090c402849288","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":180,"y":520,"wires":[["31721b1737c1207d"]]}]