The power button on the Macintosh IIsi could be turned with a flat-head screwdriver to achieve the same thing you describe (locking it in the permanently-powered state): https://en.wikipedia.org/wiki/Macintosh_IIsi#/media/File:Mac...
You could even do it with your fingernail; just push in and twist the power button, and it would stay in forever, and the Mac would automatically boot when you plug it in.