iPhone 4s Lock/Power Button Sticky
The only thing that I can think of is using Assistive Touch, which allows you to lock your device without ever actually touching the lock button.  Other than that, I would say just get the button replaced or buy a new phone - sorry!