Fix cpu spin waiting for log write events Upstream-commit: 39851eac0c655d0c1911db58d4f630e2da233cac Component: engine