Joysticks don't seem to reset the idle clock. So when you have the system set to lock after 5 minutes, plug in a joystick, and use the joystick alone for 5 minutes, the system goes to sleep.
*** This bug has been marked as a duplicate of bug 328987 ***