Shutting down with lens out is easy. Developers do that by accident all the time, because that's what usually happens when the camera firmware crashes
.
Problem is, when you power on the camera, the lens will get retracted back in (and then immediately out again if you powered to rec mode). This is not a new request, someone may have looked around their camera's firmware to see if it would be easy to get around this. In any case, this likely requires the use of some asm magic, meaning a skilled hacker with a fair amount of spare time is required and even then it might not work. And this would probably be tedious to port to other cameras.