We started trying to prevent computers from going to sleep while running an operation in https://github.com/pulumi/pulumi/pull/17675. However that PR only did so for Cloud backends. Implement the same thing for DIY backends as well to get feature parity here. Fixes https://github.com/pulumi/pulumi/issues/10279