We got around this (well, locking, not sleeping) by putting the machines in question into a special group that allows staying unlocked, and then using an alternate login (where some other string goes in “username hint”). In our case it’s where we have an event count and/or map that needs to stay running for several hours.
ETA: Saw the headline and thought, “is it this one?”