How can I automatically log out the guest account after a period of inactivity?
Maybe you could consider using SleepWatcher instead of the Security.prefPane; it´s a unix utility you could use to force a logout (or anything else via AppleScript) after a certain period of inactivity.