machan if usb debugging is on run ADB and reset the pattern lock or just disable it from running.
http://chethaka.wordpress.com/2013/02/28/unlock-an-android-device/
I have tried this on a Samsung s dous. It works. It should work with all android versions