I've tested the patch, it seems to work I have two machines: lightdm is used on one, plain startx with tweaked xsession on another. On both lxsession-logout does nothing on shutdown, reboot, suspend, hibernate.
With the patch shutdown and reboot work. Suspend sort of works. Machine goes to suspend, but lxsession-logout does not exit. After resume it remains on screen with some random jibberish in lower part of the window. Screenshot attached.